In order for Dhcp6AppendIaAddrOption (..) to safely append the IA
Address option, the Packet-Length field must be updated before appending
the option.
Cc: Saloni Kasbekar <saloni.kasbekar@intel.com>
Cc: Zachary Clark-williams <zachary.clark-williams@intel.com>
Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com>
Reviewed-by: Saloni Kasbekar <saloni.kasbekar@intel.com>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
*PacketCursor += sizeof (T2);\r
}\r
\r
+ //\r
+ // Update the packet length\r
+ //\r
+ Packet->Length += BytesNeeded;\r
+\r
//\r
// Fill all the addresses belong to the Ia\r
//\r
}\r
}\r
\r
- //\r
- // Update the packet length\r
- //\r
- Packet->Length += BytesNeeded;\r
-\r
//\r
// Fill the value of Ia option length\r
//\r