diff --git a/src/xpdev/netwrap.c b/src/xpdev/netwrap.c index 0e6fc757d7d3897f11170d11192d9dec0890125c..279b8c0f7bf1941a5c068ed6f6b10020c33e18e1 100644 --- a/src/xpdev/netwrap.c +++ b/src/xpdev/netwrap.c @@ -66,7 +66,7 @@ str_list_t getNameServerList(void) return NULL; if (GetNetworkParams(FixedInfo, &FixedInfoLen) == ERROR_BUFFER_OVERFLOW) { FixedInfo = (FIXED_INFO*)malloc(FixedInfoLen); - if (GetNetworkParams(FixedInfo, &FixedInfoLen) == ERROR_SUCCESS) { + if (FixedInfo != NULL && GetNetworkParams(FixedInfo, &FixedInfoLen) == ERROR_SUCCESS) { ip = &FixedInfo->DnsServerList; for (; ip != NULL; ip = ip->Next) strListPush(&list, ip->IpAddress.String);