Commit 6ed289cf authored by Niels Möller's avatar Niels Möller
Browse files

(address_info2sockaddr) [!HAVE_GETADDRINFO]: Updated

code to work with new string abstraction.

Rev: src/io.c:1.206
parent 2c4e0ff6
......@@ -1324,7 +1324,7 @@ address_info2sockaddr(socklen_t *length,
#error IPv6 enabled, but getaddrinfo and friends were not found.
if (a->ip && memchr(a->ip->data, ':', a->ip->length))
if (host && strchr(host, ':'))
debug("address_info2sockaddr: Literal IPv6 used. Failing.\n");
return NULL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment