Author: pschweitzer
Date: Sun May 29 12:12:15 2016
New Revision: 71454
URL:
http://svn.reactos.org/svn/reactos?rev=71454&view=rev
Log:
[DNSAPI]
Don't attempt to dereference a null-ptr in case of DNS resolution failure.
Modified:
trunk/reactos/dll/win32/dnsapi/dnsapi/query.c
Modified: trunk/reactos/dll/win32/dnsapi/dnsapi/query.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dnsapi/dnsapi/qu…
==============================================================================
--- trunk/reactos/dll/win32/dnsapi/dnsapi/query.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dnsapi/dnsapi/query.c [iso-8859-1] Sun May 29 12:12:15 2016
@@ -283,7 +283,8 @@
}
}
- LastRecord->pNext = 0;
+ if (LastRecord)
+ LastRecord->pNext = 0;
/* The name */
RtlFreeHeap(RtlGetProcessHeap(), 0, Buffer);