Skip to content

Commit

Permalink
we would attempt to protobuf log DNS questions without a set question…
Browse files Browse the repository at this point in the history
… and get exceptions over that
  • Loading branch information
ahupowerdns committed May 11, 2017
1 parent e3f5af7 commit da5bcd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdns/protobuf.cc
Expand Up @@ -37,7 +37,8 @@ void DNSProtoBufMessage::setQuestion(const DNSName& qname, uint16_t qtype, uint1
#ifdef HAVE_PROTOBUF
PBDNSMessage_DNSQuestion* question = d_message.mutable_question();
if (question) {
question->set_qname(qname.toString());
if(!qname.empty())
question->set_qname(qname.toString());
question->set_qtype(qtype);
question->set_qclass(qclass);
}
Expand Down

0 comments on commit da5bcd9

Please sign in to comment.