[svn] commit: r2078 - /experiments/jinmei-onmemdb/src/bin/auth/normalquestion.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Sun Jun 6 06:40:53 UTC 2010


Author: jinmei
Date: Sun Jun  6 06:40:53 2010
New Revision: 2078

Log:
corrected name length check

Modified:
    experiments/jinmei-onmemdb/src/bin/auth/normalquestion.cc

Modified: experiments/jinmei-onmemdb/src/bin/auth/normalquestion.cc
==============================================================================
--- experiments/jinmei-onmemdb/src/bin/auth/normalquestion.cc (original)
+++ experiments/jinmei-onmemdb/src/bin/auth/normalquestion.cc Sun Jun  6 06:40:53 2010
@@ -87,7 +87,7 @@
         for (int i = 0; i < label_len; ++i) {
             impl_->qname_data_.push_back(buffer.readUint8());
         }
-        if (impl_->qname_data_.size() > Name::MAX_LABELLEN) {
+        if (impl_->qname_data_.size() > Name::MAX_WIRE) {
             isc_throw(DNSMessageFORMERR, "Invalid qname (too long): " <<
                       impl_->qname_data_.size());
         }




More information about the bind10-changes mailing list