Commit b04f8911 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

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
parent 9653ab59
...@@ -133,9 +133,7 @@ ParkingLot::processMessage() { ...@@ -133,9 +133,7 @@ ParkingLot::processMessage() {
cout << "received a message:\n" << msg.toText() << endl; cout << "received a message:\n" << msg.toText() << endl;
QuestionIterator qid = msg.beginQuestion(); if (msg.getRRCount(Section::QUESTION()) != 1) {
qid++; // XXX: should revise this code
if (qid != msg.endQuestion()) {
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment