Fixed host_create_from_subnet when no prefix is given.
authorTobias Brunner <tobias@strongswan.org>
Fri, 29 Jul 2011 10:11:20 +0000 (12:11 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 29 Jul 2011 10:11:20 +0000 (12:11 +0200)
src/libstrongswan/utils/host.c

index 2895d62..0a6cceb 100644 (file)
@@ -585,7 +585,7 @@ host_t *host_create_from_subnet(char *string, int *bits)
                *bits = atoi(pos + 1);
                return host_create_from_string(buf, 0);
        }
-       net = host_create_from_string(buf, 0);
+       net = host_create_from_string(string, 0);
        if (net)
        {
                if (net->get_family(net) == AF_INET)