]> git.proxmox.com Git - mirror_edk2.git/commit - NetworkPkg/IpSecDxe/Ikev2/Sa.c
NetworkPkg: Avoid potential NULL pointer dereference
authorJiaxin Wu <jiaxin.wu@intel.com>
Fri, 24 Jun 2016 07:19:44 +0000 (15:19 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Mon, 27 Jun 2016 02:11:46 +0000 (10:11 +0800)
commit6771c1d65885d7e9a0dd0e5878a41b05df178420
treee4fb0146981f3e1387f909e4dbc05ab102c1cd1e
parent9252d67ab3007601ddf983d1278cbe0e4a647f34
NetworkPkg: Avoid potential NULL pointer dereference

The commit of 6b16c9e7 removes ASSERT and use error handling
in IpSecDxe driver, but may cause the potential NULL pointer
dereference. So, this patch is used to avoid NULL pointer
dereference.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Zhang Lubo <lubo.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
NetworkPkg/IpSecDxe/IkePacket.c
NetworkPkg/IpSecDxe/Ikev2/ChildSa.c
NetworkPkg/IpSecDxe/Ikev2/Exchange.c
NetworkPkg/IpSecDxe/Ikev2/Payload.c
NetworkPkg/IpSecDxe/Ikev2/Sa.c