]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg: Fix invalid pointer for DNS response token on error
authorLiming Gao <gaoliming@byosoft.com.cn>
Thu, 25 Nov 2021 16:11:06 +0000 (00:11 +0800)
committerLiming Gao <gaoliming@byosoft.com.cn>
Fri, 26 Nov 2021 08:54:49 +0000 (16:54 +0800)
commitbb1bba3d776733c41dbfa2d1dc0fe234819a79f2
tree95c99e98b4eb86948d0639c3f4679e903abf1507
parent4c7ce0d285bc7fd593718fd5dec02e136cbfad8e
NetworkPkg: Fix invalid pointer for DNS response token on error

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3719

This issue is introduced by the commit 43d7e607.
Token->RspData.H2AData is de-allocated on error but it is not
set to NULL. HTTP module attempts to free again and cause assert.

Signed-off-by: Baraneedharan Anbazhagan <anbazhagan@hp.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
NetworkPkg/DnsDxe/DnsImpl.c