Revision: 18485
http://sourceforge.net/p/edk2/code/18485
Author: hwu1225
Date: 2015-09-17 00:54:45 +0000 (Thu, 17 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.
(Sync patch r18482 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <[email protected]>
Reviewed-by: Ye Ting <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/18482
Modified Paths:
--------------
branches/UDK2015/NetworkPkg/HttpDxe/HttpImpl.c
Modified: branches/UDK2015/NetworkPkg/HttpDxe/HttpImpl.c
===================================================================
--- branches/UDK2015/NetworkPkg/HttpDxe/HttpImpl.c 2015-09-16 09:02:48 UTC
(rev 18484)
+++ branches/UDK2015/NetworkPkg/HttpDxe/HttpImpl.c 2015-09-17 00:54:45 UTC
(rev 18485)
@@ -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