From: Bert Hubert Date: Fri, 7 Jan 2011 22:04:06 +0000 (+0000) Subject: <- idiot X-Git-Tag: auth-3.0~416 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6fa040bbe879222a7adfd4d583fca696629aee6;p=pdns <- idiot git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1831 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index 8312ef706..ff2f37dba 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -433,7 +433,7 @@ try if(getEDNSOpts(mdp, &edo)) { - d_maxreplylen=max(edo.d_packetsize, (uint16_t)1280); + d_maxreplylen=min(edo.d_packetsize, (uint16_t)1680); // cerr<