Fixed host_create_from_subnet when no prefix is given.

This commit is contained in:
Tobias Brunner
2011-07-29 12:11:20 +02:00
parent f1c1965d64
commit 0511c93d46
+1 -1
View 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)