mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[DNSAPI]
Don't attempt to dereference a null-ptr in case of DNS resolution failure. svn path=/trunk/; revision=71454
This commit is contained in:
@@ -283,7 +283,8 @@ DnsQuery_W(LPCWSTR Name,
|
||||
}
|
||||
}
|
||||
|
||||
LastRecord->pNext = 0;
|
||||
if (LastRecord)
|
||||
LastRecord->pNext = 0;
|
||||
|
||||
/* The name */
|
||||
RtlFreeHeap(RtlGetProcessHeap(), 0, Buffer);
|
||||
|
||||
Reference in New Issue
Block a user