[svn] commit: r573 - /branches/parkinglot/src/bin/parkinglot/parkinglot.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Jan 27 21:09:37 UTC 2010
Author: jinmei
Date: Wed Jan 27 21:09:37 2010
New Revision: 573
Log:
use Message::getRRcount() to rejrect >1 question RRs
Modified:
branches/parkinglot/src/bin/parkinglot/parkinglot.cc
Modified: branches/parkinglot/src/bin/parkinglot/parkinglot.cc
==============================================================================
--- branches/parkinglot/src/bin/parkinglot/parkinglot.cc (original)
+++ branches/parkinglot/src/bin/parkinglot/parkinglot.cc Wed Jan 27 21:09:37 2010
@@ -133,9 +133,7 @@
cout << "received a message:\n" << msg.toText() << endl;
- QuestionIterator qid = msg.beginQuestion();
- qid++; // XXX: should revise this code
- if (qid != msg.endQuestion()) {
+ if (msg.getRRCount(Section::QUESTION()) != 1) {
return;
}
More information about the bind10-changes
mailing list