aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-07-29 12:11:20 +0200
committerTobias Brunner <tobias@strongswan.org>2011-07-29 12:11:20 +0200
commit0511c93d46346fdd269b6ab48e234ed26d2b09bf (patch)
treea9c148b660ba8b87d59c1961b44fea91d264eeab
parentf1c1965d64611645beb87b27ce0072faff65ccf1 (diff)
downloadstrongswan-0511c93d46346fdd269b6ab48e234ed26d2b09bf.tar.bz2
strongswan-0511c93d46346fdd269b6ab48e234ed26d2b09bf.tar.xz
Fixed host_create_from_subnet when no prefix is given.
-rw-r--r--src/libstrongswan/utils/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/utils/host.c b/src/libstrongswan/utils/host.c
index 2895d620c..0a6cceb77 100644
--- a/src/libstrongswan/utils/host.c
+++ b/src/libstrongswan/utils/host.c
@@ -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)