diff options
author | Martin Willi <martin@revosec.ch> | 2012-11-21 10:08:04 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-11-22 12:13:44 +0100 |
commit | b5d27839ad41b43a824a2b4756faca8503da5bc2 (patch) | |
tree | 30ab77088574e6f999751c29d3855859a28188c7 /src/libcharon/plugins/unity | |
parent | 48b23d06a8c701d6d48666dbe927f5454dfea7a4 (diff) | |
download | strongswan-b5d27839ad41b43a824a2b4756faca8503da5bc2.tar.bz2 strongswan-b5d27839ad41b43a824a2b4756faca8503da5bc2.tar.xz |
Do not send 0.0.0.0/0 traffic selectors as Split-Include Unity attributes
It seems that iOS devices don't like them.
Diffstat (limited to 'src/libcharon/plugins/unity')
-rw-r--r-- | src/libcharon/plugins/unity/unity_provider.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libcharon/plugins/unity/unity_provider.c b/src/libcharon/plugins/unity/unity_provider.c index 0881b3985..d4d374f1b 100644 --- a/src/libcharon/plugins/unity/unity_provider.c +++ b/src/libcharon/plugins/unity/unity_provider.c @@ -62,8 +62,12 @@ METHOD(enumerator_t, attribute_enumerate, bool, !ts->is_dynamic(ts) && ts->to_subnet(ts, &net, &mask)) { - ts->destroy(ts); - break; + if (mask > 0) + { + ts->destroy(ts); + break; + } + net->destroy(net); } ts->destroy(ts); } |