Revision: 18876
http://sourceforge.net/p/edk2/code/18876
Author: vanjeff
Date: 2015-11-18 08:38:44 +0000 (Wed, 18 Nov 2015)
Log Message:
-----------
NetworkPkg:Fix the issue that cannot parse ipv6 address correctly.
If there is a ipv6 expressed url, the NetLibAsciiStrToIp6 cannot get the Ipv6
address from the host name, because the host name contains left and right
bracket which cannot be used to configure the Tcp6 connection.
(Sync patch r18745 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <[email protected]>
Reviewed-by: Ye Ting <[email protected]>
Reviewed-by: Fu Siyuan <[email protected]>
Reviewed-by: Wu Jiaxin <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/18745
Modified Paths:
--------------
branches/UDK2015/NetworkPkg/HttpDxe/HttpImpl.c
Modified: branches/UDK2015/NetworkPkg/HttpDxe/HttpImpl.c
===================================================================
--- branches/UDK2015/NetworkPkg/HttpDxe/HttpImpl.c 2015-11-18 08:37:41 UTC
(rev 18875)
+++ branches/UDK2015/NetworkPkg/HttpDxe/HttpImpl.c 2015-11-18 08:38:44 UTC
(rev 18876)
@@ -391,7 +391,7 @@
if (!HttpInstance->LocalAddressIsIPv6) {
Status = NetLibAsciiStrToIp4 (HostName, &HttpInstance->RemoteAddr);
} else {
- Status = NetLibAsciiStrToIp6 (HostName, &HttpInstance->RemoteIpv6Addr);
+ Status = HttpUrlGetIp6 (Url, UrlParser, &HttpInstance->RemoteIpv6Addr);
}
if (EFI_ERROR (Status)) {
------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits