From: Tomek Mrugalski Date: Wed, 31 Jan 2018 13:38:11 +0000 (+0100) Subject: [5514] Change after review: X-Git-Tag: trac5524_base~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Ftrac5514;p=thirdparty%2Fkea.git [5514] Change after review: - the opion-space check removed from DHCPv4 similar to DHCPv6 --- diff --git a/src/lib/dhcp/libdhcp++.cc b/src/lib/dhcp/libdhcp++.cc index 88d86d7ea6..da85930362 100644 --- a/src/lib/dhcp/libdhcp++.cc +++ b/src/lib/dhcp/libdhcp++.cc @@ -533,10 +533,12 @@ size_t LibDHCP::unpackOptions4(const OptionBuffer& buf, OptionDefContainerTypeRange range; // Number of option definitions returned. size_t num_defs = 0; - if (option_space == DHCP4_OPTION_SPACE) { - range = idx.equal_range(opt_type); - num_defs = distance(range.first, range.second); - } + + // Previously we did the lookup only for "dhcp4" option space, but there + // may be standard options in other spaces (e.g. radius). So we now do + // the lookup for every space. + range = idx.equal_range(opt_type); + num_defs = distance(range.first, range.second); // Standard option definitions do not include the definition for // our option or we're searching for non-standard option. Try to