X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=NetworkPkg%2FDhcp6Dxe%2FDhcp6Io.c;h=063605e60947bb6a8c7291e27d8c49445cbbda79;hp=b23147952517aae8d3447ce17c46551402865ea7;hb=4701d96534f2228b6f4aa925606566d2c2bb55be;hpb=234f9ff96e2179e552463dd09ccc515b1c4a6119 diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c b/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c index b231479525..063605e609 100644 --- a/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c +++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c @@ -2,7 +2,7 @@ Dhcp6 internal functions implementation. (C) Copyright 2014 Hewlett-Packard Development Company, L.P.
- Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -2812,6 +2812,7 @@ Dhcp6ReceivePacket ( LIST_ENTRY *Next1; LIST_ENTRY *Entry2; LIST_ENTRY *Next2; + EFI_STATUS Status; ASSERT (Udp6Wrap != NULL); ASSERT (Context != NULL); @@ -2891,6 +2892,18 @@ Dhcp6ReceivePacket ( ON_CONTINUE: + if (!IsDispatched) { + Status = UdpIoRecvDatagram ( + Service->UdpIo, + Dhcp6ReceivePacket, + Service, + 0 + ); + if (EFI_ERROR (Status)) { + Dhcp6CleanupRetry (Instance, DHCP6_PACKET_ALL); + } + } + NetbufFree (Udp6Wrap); if (Packet != NULL) {