/** @file\r
This code implements the IP4Config and NicIp4Config protocols.\r
\r
+Copyright (c) 2014, Hewlett-Packard Development Company, L.P.<BR>\r
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
This->Dhcp4Handle = NULL;\r
}\r
\r
- if (This->Dhcp4Event == NULL) {\r
+ if (This->Dhcp4Event != NULL) {\r
gBS->CloseEvent (This->Dhcp4Event);\r
This->Dhcp4Event = NULL;\r
}\r