Parcourir la source

[5087] Removed the getCode() == DHO_DOMAIN_SEARCH check

Francis Dupont il y a 8 ans
Parent
commit
40e28caaad
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      src/lib/dhcp/option_definition.cc

+ 1 - 2
src/lib/dhcp/option_definition.cc

@@ -858,8 +858,7 @@ OptionDefinition::factorySpecialFormatOption(Option::Universe u,
     } else {
     } else {
         if ((getCode() == DHO_FQDN) && haveFqdn4Format()) {
         if ((getCode() == DHO_FQDN) && haveFqdn4Format()) {
             return (OptionPtr(new Option4ClientFqdn(begin, end)));
             return (OptionPtr(new Option4ClientFqdn(begin, end)));
-        } else if ((getCode() == DHO_DOMAIN_SEARCH) &&
-                   haveCompressedFqdnListFormat()) {
+        } else if (haveCompressedFqdnListFormat()) {
             return (factoryFqdnList(Option::V4, begin, end));
             return (factoryFqdnList(Option::V4, begin, end));
         } else if ((getCode() == DHO_VIVCO_SUBOPTIONS) &&
         } else if ((getCode() == DHO_VIVCO_SUBOPTIONS) &&
                    haveVendorClass4Format()) {
                    haveVendorClass4Format()) {