diff options
Diffstat (limited to 'src/libcharon/plugins/unity/unity_narrow.c')
-rw-r--r-- | src/libcharon/plugins/unity/unity_narrow.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libcharon/plugins/unity/unity_narrow.c b/src/libcharon/plugins/unity/unity_narrow.c index dada26dc6..a5fcfabc7 100644 --- a/src/libcharon/plugins/unity/unity_narrow.c +++ b/src/libcharon/plugins/unity/unity_narrow.c @@ -53,7 +53,11 @@ METHOD(listener_t, narrow, bool, { /* got one, replace original TS */ remote->remove_first(remote, (void**)&orig); } - remote->insert_last(remote, orig->get_subset(orig, current)); + current = orig->get_subset(orig, current); + if (current) + { + remote->insert_last(remote, current); + } } enumerator->destroy(enumerator); if (orig) |