aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)