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

kernel32: Fix crash in dns_gethostbyname.

parent 3d025854
...@@ -92,6 +92,11 @@ static BOOL dns_gethostbyname ( char *name, int *size ) ...@@ -92,6 +92,11 @@ static BOOL dns_gethostbyname ( char *name, int *size )
if ( res ) if ( res )
WARN ("Error in gethostbyname_r %d (%d)\n", res, locerr); 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 else
{ {
int len = strlen ( host->h_name ); 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