]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg/Udp6Dxe: Fix the failure to leave one multicast group address.
authorJiaxin Wu <jiaxin.wu@intel.com>
Thu, 1 Mar 2018 09:24:20 +0000 (17:24 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Fri, 2 Mar 2018 03:15:38 +0000 (11:15 +0800)
The issue was enrolled by the commit of ceec3638. One of the change in the commit
was to return the status from NetMapIterate in Udp6Groups function. But it should
not return EFI_ABORTED directly in case McastIp is not NULL, which means to terminate
the iteration and leave the McastIp successfully.

Cc: Wang Fan <fan.wang@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
NetworkPkg/Udp6Dxe/Udp6Main.c

index 1d7f0acbc7dff48d9281ae8259a4c3712d941c0d..e9d94dd00c21af2ebc05dbca3e57f379a70cac3b 100644 (file)
@@ -382,6 +382,9 @@ Udp6Groups (
   } else {\r
 \r
     Status = NetMapIterate (&Instance->McastIps, Udp6LeaveGroup, MulticastAddress);\r
+    if ((MulticastAddress != NULL) && (Status == EFI_ABORTED)) {\r
+      Status = EFI_SUCCESS;\r
+    } \r
   }\r
 \r
 ON_EXIT:\r