Author: janderwald
Date: Thu Oct 30 15:25:27 2008
New Revision: 37108
URL:
http://svn.reactos.org/svn/reactos?rev=37108&view=rev
Log:
- Make sure its DNS ServerList is NULL terminated
Modified:
trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c
Modified: trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/iphlpap…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c [iso-8859-1] Thu Oct 30 15:25:27
2008
@@ -1388,7 +1388,6 @@
CopyMemory(&pFixedInfo->DnsServerList, resInfo->DnsList,
sizeof(IP_ADDR_STRING));
if (resInfo->riCount > 1)
{
-
IP_ADDR_STRING *pSrc = resInfo->DnsList->Next;
IP_ADDR_STRING *pTarget = (struct _IP_ADDR_STRING*)((char*)pFixedInfo +
sizeof(FIXED_INFO));
@@ -1411,6 +1410,10 @@
}
}
while(TRUE);
+ }
+ else
+ {
+ pFixedInfo->DnsServerList.Next = NULL;
}
}