diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-07-29 12:11:20 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-07-29 12:11:20 +0200 |
commit | 0511c93d46346fdd269b6ab48e234ed26d2b09bf (patch) | |
tree | a9c148b660ba8b87d59c1961b44fea91d264eeab | |
parent | f1c1965d64611645beb87b27ce0072faff65ccf1 (diff) | |
download | strongswan-0511c93d46346fdd269b6ab48e234ed26d2b09bf.tar.bz2 strongswan-0511c93d46346fdd269b6ab48e234ed26d2b09bf.tar.xz |
Fixed host_create_from_subnet when no prefix is given.
-rw-r--r-- | src/libstrongswan/utils/host.c | 2 |
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) |