Updated template method to use qualifyName as it should
have been. This also serves to remove use of std::string::back.
} else {
// If the supplied name is partial, qualify it by adding the suffix.
if (fqdn.getDomainNameType() == OPT::PARTIAL) {
- std::ostringstream name;
- name << fqdn.getDomainName();
- name << "." << (d2_client_config_->getQualifyingSuffix());
- if (d2_client_config_->getQualifyingSuffix().back() != '.') {
- name << ".";
- }
-
- fqdn_resp.setDomainName(name.str(), OPT::FULL);
+ fqdn_resp.setDomainName(qualifyName(fqdn.getDomainName()),
+ OPT::FULL);
}
}
}