]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Do not send 0.0.0.0/0 traffic selectors as Split-Include Unity attributes
authorMartin Willi <martin@revosec.ch>
Wed, 21 Nov 2012 09:08:04 +0000 (10:08 +0100)
committerMartin Willi <martin@revosec.ch>
Thu, 22 Nov 2012 11:13:44 +0000 (12:13 +0100)
It seems that iOS devices don't like them.

src/libcharon/plugins/unity/unity_provider.c

index 0881b3985ddf7ffff9de2388adfb2ad227bedd62..d4d374f1b45e4c91e3130ebbe082c9969d63e7c4 100644 (file)
@@ -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);
        }