]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/DxeNetLib/DxeNetLib.c
MdeModulePkg:Fix bug in function AsciiStrToIp4.
authorZhang Lubo <lubo.zhang@intel.com>
Fri, 19 Aug 2016 07:38:20 +0000 (15:38 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Wed, 24 Aug 2016 05:44:02 +0000 (13:44 +0800)
commitd82d59edb0ec23e6ef708e04a5553ac32f1eb12e
treef7b268850e897b0f458fc2879e76f95c2691f175
parent4962fcfa7d265824f01f74d782d5ed841ec8a72f
MdeModulePkg:Fix bug in function AsciiStrToIp4.

If a FQDN contains 3 dots '.' like "a.b.c.com", the AsciiStrToIp4
will return success as the HostName has a valid IP address. So we
need to check if it is a decimal character before using AsciiStrDecimalToUintn.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
MdeModulePkg/Library/DxeNetLib/DxeNetLib.c