Commit cb5a5f6e authored by Yoshitaka Aharen's avatar Yoshitaka Aharen
Browse files

[2157] corrected conditions for compound attributes

parent d5d8fa74
...@@ -203,6 +203,7 @@ Counters::incResponse(const MessageAttributes& msgattrs, ...@@ -203,6 +203,7 @@ Counters::incResponse(const MessageAttributes& msgattrs,
rcode_to_msgcounter[rcode] : MSG_RCODE_OTHER; rcode_to_msgcounter[rcode] : MSG_RCODE_OTHER;
server_msg_counter_.inc(rcode_type); server_msg_counter_.inc(rcode_type);
if (msgattrs.getRequestOpCode() == Opcode::QUERY_CODE) {
// compound attributes // compound attributes
const unsigned int answer_rrs = const unsigned int answer_rrs =
response.getRRCount(Message::SECTION_ANSWER); response.getRRCount(Message::SECTION_ANSWER);
...@@ -230,9 +231,12 @@ Counters::incResponse(const MessageAttributes& msgattrs, ...@@ -230,9 +231,12 @@ Counters::incResponse(const MessageAttributes& msgattrs,
} }
} }
} else if (rcode == Rcode::REFUSED_CODE) { } else if (rcode == Rcode::REFUSED_CODE) {
if (!response.getHeaderFlag(Message::HEADERFLAG_RD)) {
// AuthRej // AuthRej
server_msg_counter_.inc(MSG_QRYREJECT); server_msg_counter_.inc(MSG_QRYREJECT);
} }
}
}
} }
void void
......
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