Changeset 1729

Show
Ignore:
Timestamp:
10/24/10 21:34:23 (4 years ago)
Author:
ahu
Message:

silence an error message on very small packets - discovered by John J and Winfried A.

Files:
1 modified

Legend:

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

    r1691 r1729  
    4949bool dnspacketLessThan(const std::string& a, const std::string& b) 
    5050{ 
    51   if(a.length() < 12 || b.length() < 12)  
     51  if(a.length() <= 12 || b.length() <= 12)  
    5252    return a.length() < b.length(); 
    5353//    throw runtime_error("Error parsing question in dnspacket comparison: packet too short");