BIND 10 trac2387, updated. f8205314f85fa56bd7a8b783764c9e4ef050ad6c [2387] Rearrange code

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Apr 9 06:06:16 UTC 2013


The branch, trac2387 has been updated
       via  f8205314f85fa56bd7a8b783764c9e4ef050ad6c (commit)
      from  9a045959025fb0961c7bf2eb09603f7604d5cbee (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 f8205314f85fa56bd7a8b783764c9e4ef050ad6c
Author: Mukund Sivaraman <muks at isc.org>
Date:   Tue Apr 9 11:20:27 2013 +0530

    [2387] Rearrange code

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

Summary of changes:
 src/lib/dns/rdata/generic/dnskey_48.cc |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/rdata/generic/dnskey_48.cc b/src/lib/dns/rdata/generic/dnskey_48.cc
index 3dadde9..0a829ed 100644
--- a/src/lib/dns/rdata/generic/dnskey_48.cc
+++ b/src/lib/dns/rdata/generic/dnskey_48.cc
@@ -280,12 +280,11 @@ DNSKEY::compare(const Rdata& other) const {
 uint16_t
 DNSKEY::getTag() const {
     if (impl_->algorithm_ == 1) {
-        const int len = impl_->keydata_.size();
-
         // See RFC 4034 appendix B.1 for why the key data must contain
         // at least 4 bytes with RSA/MD5: 3 trailing bytes to extract
         // the tag from, and 1 byte of exponent length subfield before
         // modulus.
+        const int len = impl_->keydata_.size();
         if (len < 4) {
             isc_throw(isc::OutOfRange,
                       "DNSKEY keydata too short for tag extraction");



More information about the bind10-changes mailing list