1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Remove update of options size in constructor

This commit is contained in:
bkambach
2015-07-13 17:49:29 -04:00
parent 848d8348ae
commit fe48586eef

View File

@@ -58,7 +58,7 @@ DHCPv6::DHCPv6(const uint8_t *buffer, uint32_t total_sz)
buffer += ipaddress_type::address_size * 2;
total_sz -= ipaddress_type::address_size * 2;
}
options_size = total_sz;
//options_size = total_sz;
while(total_sz) {
if(total_sz < sizeof(uint16_t) * 2)
throw malformed_packet();