Commit e716c5b1 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

kernel32: Fix crash in dns_gethostbyname.

parent 3d025854
......@@ -89,9 +89,14 @@ static BOOL dns_gethostbyname ( char *name, int *size )
ebufsize *= 2;
extrabuf = HeapReAlloc( GetProcessHeap(), 0, extrabuf, ebufsize ) ;
}
if ( res )
WARN ("Error in gethostbyname_r %d (%d)\n", res, locerr);
else if ( !host )
{
WARN ("gethostbyname_r returned NULL host, locerr = %d\n", locerr);
res = 1;
}
else
{
int len = strlen ( host->h_name );
......
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