]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 3dec7a3b6a1952d6de015e0b6a776a043f0dcdfa..6e1c5bb23138ab85abb7ebd2544c00732c6178f9 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;
        }