Commit c1870d0e authored by Mark Andrews's avatar Mark Andrews
Browse files

freeaddrinfo is called too early.

parent 6089c8df
......@@ -107,10 +107,10 @@ addserver(const char *server, isc_sockaddrlist_t *list,
INSIST(res->ai_addrlen <= sizeof(sockaddr->type));
memmove(&sockaddr->type, res->ai_addr, res->ai_addrlen);
sockaddr->length = (unsigned int)res->ai_addrlen;
ISC_LINK_INIT(sockaddr, link);
ISC_LIST_APPEND(*list, sockaddr, link);
return (ISC_TRUE);
Markdown is supported
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