mirror of https://github.com/acidanthera/audk.git
NetworkPkg:Fix bug when parsing the dhcp6 option 16
when to parse the DHCP6 reply packet,there will be 6 bytes offset before the option data according to RFC 3315. Cc: Fu Siyuan <siyuan.fu@intel.com> Cc: Ye Ting <ting.ye@intel.com> Cc: Wu Jiaxin <jiaxin.wu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo <lubo.zhang@intel.com> Reviewed-by: Reviewed-by: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
This commit is contained in:
parent
651aeac672
commit
3decba3d32
|
@ -251,8 +251,8 @@ HttpBootParseDhcp6Packet (
|
|||
Option = Options[HTTP_BOOT_DHCP6_IDX_VENDOR_CLASS];
|
||||
|
||||
if (Option != NULL &&
|
||||
NTOHS(Option->OpLen) >= 10 &&
|
||||
CompareMem (Option->Data, DEFAULT_CLASS_ID_DATA, 10) == 0) {
|
||||
NTOHS(Option->OpLen) >= 16 &&
|
||||
CompareMem ((Option->Data + 6), DEFAULT_CLASS_ID_DATA, 10) == 0) {
|
||||
IsHttpOffer = TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue