BIND 10 trac3282, updated. d38e7638f9ecafc4e0db3a6b9dcad7a808c49781 [3282] Removed use of std::string::back from header

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Jan 20 16:36:33 UTC 2014


The branch, trac3282 has been updated
       via  d38e7638f9ecafc4e0db3a6b9dcad7a808c49781 (commit)
      from  f9cea380de68d0c181b4f80ad3df05cd53eb37e9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d38e7638f9ecafc4e0db3a6b9dcad7a808c49781
Author: Thomas Markwalder <tmark at isc.org>
Date:   Mon Jan 20 11:34:55 2014 -0500

    [3282] Removed use of std::string::back from header
    
    Updated template method to use qualifyName as it should
    have been. This also serves to remove use of std::string::back.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dhcpsrv/d2_client.h |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dhcpsrv/d2_client.h b/src/lib/dhcpsrv/d2_client.h
index 0029588..d179387 100644
--- a/src/lib/dhcpsrv/d2_client.h
+++ b/src/lib/dhcpsrv/d2_client.h
@@ -375,14 +375,8 @@ D2ClientMgr::adjustDomainName(OPT& fqdn, OPT& fqdn_resp) {
     } 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);
         }
     }
 }



More information about the bind10-changes mailing list