]> git.proxmox.com Git - mirror_edk2.git/commit - NetworkPkg/HttpDxe/HttpImpl.c
NetworkPkg: Code logic optimization for DnsDxe and HttpDxe driver
authorfanwang2 <fan.wang@intel.com>
Fri, 10 Jul 2015 09:00:33 +0000 (09:00 +0000)
committerfanwang2 <fanwang2@Edk2>
Fri, 10 Jul 2015 09:00:33 +0000 (09:00 +0000)
commit3fd7bd08f438130f9fcbcc1ab4392dea1a859c14
tree2ac1c1d8cf921d06b14b56582542ae8ae4807473
parent6b6fe3e9aa3d27070cf8e004a194a9c6f392ba5b
NetworkPkg: Code logic optimization for DnsDxe and HttpDxe driver

Revise some errors which may lead NULL pointer be dereferenced:
* DnsDhcp.c: Paralist may be used without any initialized
* DnsHeader and RcvString may be null but be dereferenced
* HttpDriver.c: revise an if judgment
* HttpImpl.c: add a judgment to avoid null dereferenced

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: fanwang2 <fan.wang@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17923 6f19259b-4bc3-4df7-8a09-765794883524
NetworkPkg/DnsDxe/DnsDhcp.c
NetworkPkg/DnsDxe/DnsImpl.c
NetworkPkg/HttpDxe/HttpDriver.c
NetworkPkg/HttpDxe/HttpImpl.c