From: Marcin Siodelski Date: Wed, 14 Aug 2013 11:19:19 +0000 (+0200) Subject: [3036] Represent FQDN Option domain-name in the downcase format. X-Git-Tag: bind10-1.2.0beta1-release~257^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=785e97d51905a7d7d7d32d08ac7d82ceee272fc2;p=thirdparty%2Fkea.git [3036] Represent FQDN Option domain-name in the downcase format. --- diff --git a/src/lib/dhcp/option6_client_fqdn.cc b/src/lib/dhcp/option6_client_fqdn.cc index 2f69572ff7..ddced8f3e6 100644 --- a/src/lib/dhcp/option6_client_fqdn.cc +++ b/src/lib/dhcp/option6_client_fqdn.cc @@ -174,7 +174,7 @@ setDomainName(const std::string& domain_name, } else { try { - domain_name_.reset(new isc::dns::Name(name)); + domain_name_.reset(new isc::dns::Name(name, true)); domain_name_type_ = name_type; } catch (const Exception& ex) { @@ -234,7 +234,7 @@ Option6ClientFqdnImpl::parseWireData(OptionBufferConstIter first, // Reset domain name. isc::util::InputBuffer name_buf(&buf[0], buf.size()); try { - domain_name_.reset(new isc::dns::Name(name_buf)); + domain_name_.reset(new isc::dns::Name(name_buf, true)); } catch (const Exception& ex) { isc_throw(InvalidOption6FqdnDomainName, "failed to parse" "partial domain-name from wire format"); @@ -249,7 +249,7 @@ Option6ClientFqdnImpl::parseWireData(OptionBufferConstIter first, isc::util::InputBuffer name_buf(&(*first), std::distance(first, last)); try { - domain_name_.reset(new isc::dns::Name(name_buf)); + domain_name_.reset(new isc::dns::Name(name_buf, true)); } catch (const Exception& ex) { isc_throw(InvalidOption6FqdnDomainName, "failed to parse" "fully qualified domain-name from wire format");