diff options
Diffstat (limited to 'MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.c')
-rw-r--r-- | MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.c b/MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.c index 3a0075c467..b66348c284 100644 --- a/MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.c +++ b/MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.c @@ -414,7 +414,10 @@ UdpIoFreePort ( UdpIo->UdpHandle
);
- NetListRemoveEntry (&UdpIo->Link);
+ if (!IsListEmpty(&UdpIo->Link)) {
+ NetListRemoveEntry (&UdpIo->Link);
+ }
+
NetFreePool (UdpIo);
return EFI_SUCCESS;
}
|