Don't attempt to dereference a null-ptr in case of DNS resolution failure.

svn path=/trunk/; revision=71454
This commit is contained in:
Pierre Schweitzer
2016-05-29 12:12:15 +00:00
parent 0a04ca9713
commit a8ebfc7774
+2 -1
View File
@@ -283,7 +283,8 @@ DnsQuery_W(LPCWSTR Name,
}
}
LastRecord->pNext = 0;
if (LastRecord)
LastRecord->pNext = 0;
/* The name */
RtlFreeHeap(RtlGetProcessHeap(), 0, Buffer);