[DHCPCSVC] Fix exception on service restart

CORE-14390
This commit is contained in:
Eric Kohl 2025-05-31 16:16:34 +02:00
parent 87b8c1ee2f
commit babe6046e5

View file

@ -1075,7 +1075,7 @@ state_panic(void *ipp)
note("No DHCPOFFERS received.");
if (!Adapter->NteContext)
if (Adapter && !Adapter->NteContext)
{
/* Generate an automatic private address */
DbgPrint("DHCPCSVC: Failed to receive a response from a DHCP server. An automatic private address will be assigned.\n");