unity: Allow UNITY_LOCAL_LAN to be longer than 8 bytes
[strongswan.git] / 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;
        }