X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=NetworkPkg%2FIp6Dxe%2FIp6Input.c;fp=NetworkPkg%2FIp6Dxe%2FIp6Input.c;h=55f0ae869ad80aa55d37555c41132fd777573d57;hb=90e529e2ccf02a5aa85edca3412de7cdb33b74e1;hp=f63c1afa82ab51100d72a351bf21b60dd8dbca70;hpb=b6ee58980525321bc5724ecc9a71dbc7beccf14e;p=mirror_edk2.git diff --git a/NetworkPkg/Ip6Dxe/Ip6Input.c b/NetworkPkg/Ip6Dxe/Ip6Input.c index f63c1afa82..55f0ae869a 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Input.c +++ b/NetworkPkg/Ip6Dxe/Ip6Input.c @@ -738,8 +738,6 @@ Ip6PreProcessPacket ( OUT UINT32 *UnFragmentLen, OUT BOOLEAN *Fragmented, OUT EFI_IP6_HEADER **Head - - ) { UINT16 PayloadLen; @@ -1059,6 +1057,13 @@ Ip6AcceptFrame ( } } + // + // Check the Packet again. + // + if (Packet == NULL) { + goto Restart; + } + // // Packet may have been changed. The ownership of the packet // is transfered to the packet process logic.