Commit 9947a8d0 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ws2_32: Correctly null-terminate the addrinfo chain.

parent 7f95c692
......@@ -752,6 +752,7 @@ static NTSTATUS unix_getaddrinfo( void *args )
dst->ai_addrlen = sockaddr_from_unix( (const union unix_sockaddr *)src->ai_addr, NULL, 0 );
dst->ai_addr = next;
sockaddr_from_unix( (const union unix_sockaddr *)src->ai_addr, dst->ai_addr, dst->ai_addrlen );
dst->ai_next = NULL;
next = (char *)dst->ai_addr + dst->ai_addrlen;
if (dst == params->info || !addrinfo_in_list( params->info, dst ))
......@@ -763,8 +764,6 @@ static NTSTATUS unix_getaddrinfo( void *args )
}
}
dst->ai_next = NULL;
freeaddrinfo( unix_info );
return 0;
#else
......
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