Changeset 1327

Show
Ignore:
Timestamp:
02/01/09 14:26:49 (14 months ago)
Author:
ahu
Message:

prevent bogus qtype/qclass reporting from servers that send answers w/o repeating the question

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/dnsparser.cc

    r1232 r1327  
    200200  bool validPacket=false; 
    201201  try { 
     202    d_qtype = d_qclass = 0; // sometimes replies come in with no question, don't present garbage then 
     203 
    202204    for(n=0;n < d_header.qdcount; ++n) { 
    203205      d_qname=pr.getLabel();