[svn] commit: r1907 - /trunk/src/lib/dns/rdata/generic/nsec_47.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Fri May 21 21:53:58 UTC 2010


Author: jinmei
Date: Fri May 21 21:53:57 2010
New Revision: 1907

Log:
tighten an assertion check (based on a review comment, see trac #116)

Modified:
    trunk/src/lib/dns/rdata/generic/nsec_47.cc

Modified: trunk/src/lib/dns/rdata/generic/nsec_47.cc
==============================================================================
--- trunk/src/lib/dns/rdata/generic/nsec_47.cc (original)
+++ trunk/src/lib/dns/rdata/generic/nsec_47.cc Fri May 21 21:53:57 2010
@@ -182,7 +182,7 @@
         assert(i + 2 <= impl_->typebits_.size());
         const int block = impl_->typebits_.at(i);
         len = impl_->typebits_.at(i + 1);
-        assert(len >= 0 && len <= 32);
+        assert(len > 0 && len <= 32);
         i += 2;
         for (int j = 0; j < len; j++) {
             if (impl_->typebits_.at(i + j) == 0) {




More information about the bind10-changes mailing list