]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg/HttpBootDxe: Fix the incorrect error message output.
authorJiaxin Wu <jiaxin.wu@intel.com>
Thu, 1 Mar 2018 04:59:57 +0000 (12:59 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Fri, 2 Mar 2018 03:15:14 +0000 (11:15 +0800)
commitf33d39949b3eb7f7ab3f326c8adf560aabc6fd53
tree3f424906b3cff098be3b1ae84afad47186819513
parent951c6e63f8dbcf9eb4c720cf218cb7ede7a7255e
NetworkPkg/HttpBootDxe: Fix the incorrect error message output.

For IPv6 case, if one invalid URL returned from DHCP server, HttpBootDxe
driver could not retrieve the URL host address from DNS server. In such a
case, the error message should be printed as:
  Error: Could not retrieve the host address from DNS server.
Instead of:
  Error: Could not discover the boot information for DHCP server.
Then, we can still output as following:
  Error: Could not retrieve NBP file size from HTTP server.

Besides, currently implementation in HttpBootLoadFile will always output
error message even the HTTP process is correct.

This patch is to fix above issue.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
NetworkPkg/HttpBootDxe/HttpBootClient.c
NetworkPkg/HttpBootDxe/HttpBootImpl.c