return EFI_ACCESS_DENIED; \r
} \r
\r
- Url = NULL;\r
HostName = NULL;\r
Wrap = NULL;\r
HostNameStr = NULL;\r
//\r
// Parse the URI of the remote host.\r
//\r
+ Url = HttpInstance->Url;\r
UrlLen = StrLen (Request->Url) + 1;\r
if (UrlLen > HTTP_URL_BUFFER_LEN) {\r
Url = AllocateZeroPool (UrlLen);\r
Configure = TRUE;\r
ReConfigure = TRUE; \r
\r
- if (HttpInstance->RemoteHost == NULL && HttpInstance->RemotePort == 0) {\r
+ if (HttpInstance->RemoteHost == NULL) {\r
//\r
// Request() is called the first time. \r
//\r
if (HttpInstance->RemoteHost != NULL) {\r
FreePool (HttpInstance->RemoteHost);\r
HttpInstance->RemoteHost = NULL;\r
+ HttpInstance->RemotePort = 0;\r
}\r
}\r
} \r