Fixed NULL pointer dereferences in the dhcp client.