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