]> git.proxmox.com Git - mirror_edk2.git/commit - NetworkPkg/HttpDxe/HttpProto.c
NetworkPkg: Fix incorrect buffer free in HttpDxe
authorJiaxin Wu <jiaxin.wu@intel.com>
Wed, 27 Apr 2016 06:29:29 +0000 (14:29 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Thu, 28 Apr 2016 08:28:04 +0000 (16:28 +0800)
commit59844e126614fc8275aab083fafa5818cde0901c
treec18eb3c7b49032c4314c6b2868a05f9844e51223
parentb347a22aecbfac9aac47831fee9a30aa810d6d0b
NetworkPkg: Fix incorrect buffer free in HttpDxe

FragmentBuffer of each TcpWrap in HttpDxe should not be
freed in HttpTcpTokenCleanup(). This buffer points to
HttpMsg body actually, which is the responsibility of the
caller to allocate a buffer for Body.

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/HttpDxe/HttpProto.c