diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-11-05 00:41:46 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-11-05 00:41:46 +0000 |
commit | 7c4fd176db68a0159ea82aeaf517728302152d77 (patch) | |
tree | 3e26f1dad032dd9d924fc2dc81db973865951c02 /src | |
parent | 6a8ecfc8be5d4b5ba77eaa4693d94c5596ecabe9 (diff) | |
download | strongswan-7c4fd176db68a0159ea82aeaf517728302152d77.tar.bz2 strongswan-7c4fd176db68a0159ea82aeaf517728302152d77.tar.xz |
handle 0.0.0.0 string and af == AF_INET6
Diffstat (limited to 'src')
-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 bc85942ef..aed27078d 100644 --- a/src/libstrongswan/utils/host.c +++ b/src/libstrongswan/utils/host.c @@ -461,7 +461,7 @@ host_t *host_create_from_dns(char *string, int af, u_int16_t port) char buf[512]; int err, ret; - if (strchr(string, ':')) + if (af == AF_INET6 || strchr(string, ':')) { /* gethostbyname does not like IPv6 addresses, fallback */ return host_create_from_string(string, port); } |