diff --git a/NetworkPkg/HttpDxe/HttpImpl.c b/NetworkPkg/HttpDxe/HttpImpl.c index 76c95b2bb6..50c0617436 100644 --- a/NetworkPkg/HttpDxe/HttpImpl.c +++ b/NetworkPkg/HttpDxe/HttpImpl.c @@ -316,7 +316,7 @@ EfiHttpRequest ( 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 @@ EfiHttpRequest ( if (HttpInstance->RemoteHost != NULL) { FreePool (HttpInstance->RemoteHost); HttpInstance->RemoteHost = NULL; + HttpInstance->RemotePort = 0; } } }