Revision: 18482
http://sourceforge.net/p/edk2/code/18482
Author: sfu5
Date: 2015-09-16 08:52:24 +0000 (Wed, 16 Sep 2015)
Log Message:
-----------
NetworkPkg: Enhance the NULL pointer check before dereference it.
This patch enhances the NULL pointer check of the HttpInstance->RemoteHost
pointer before dereference it.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <[email protected]>
Reviewed-by: Ye Ting <[email protected]>
Modified Paths:
--------------
trunk/edk2/NetworkPkg/HttpDxe/HttpImpl.c
Modified: trunk/edk2/NetworkPkg/HttpDxe/HttpImpl.c
===================================================================
--- trunk/edk2/NetworkPkg/HttpDxe/HttpImpl.c 2015-09-16 08:40:20 UTC (rev
18481)
+++ trunk/edk2/NetworkPkg/HttpDxe/HttpImpl.c 2015-09-16 08:52:24 UTC (rev
18482)
@@ -316,7 +316,7 @@
Configure = TRUE;
ReConfigure = TRUE;
- if (HttpInstance->RemoteHost == NULL && HttpInstance->RemotePort == 0) {
+ if (HttpInstance->RemoteHost == NULL) {
//
// Request() is called the first time.
//
@@ -373,6 +373,7 @@
if (HttpInstance->RemoteHost != NULL) {
FreePool (HttpInstance->RemoteHost);
HttpInstance->RemoteHost = NULL;
+ HttpInstance->RemotePort = 0;
}
}
}
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits