Browse Source

use Message::getRRcount() to rejrect >1 question RRs

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@573 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 15 years ago
parent
commit
b04f89110c
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/bin/parkinglot/parkinglot.cc

+ 1 - 3
src/bin/parkinglot/parkinglot.cc

@@ -133,9 +133,7 @@ ParkingLot::processMessage() {
 
         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;
         }