unity: Allow UNITY_LOCAL_LAN to be longer than 8 bytes
authorTobias Brunner <tobias@strongswan.org>
Mon, 15 Jul 2013 13:15:59 +0000 (15:15 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 17 Jul 2013 16:23:57 +0000 (18:23 +0200)
src/libcharon/plugins/unity/unity_handler.c

index 3dec7a3..6e1c5bb 100644 (file)
@@ -70,7 +70,7 @@ static traffic_selector_t *create_ts(chunk_t subnet)
        chunk_t net, mask;
        int i;
 
-       if (subnet.len != 8)
+       if (subnet.len < 8)
        {
                return NULL;
        }