Show
Ignore:
Timestamp:
08/05/08 20:51:24 (5 years ago)
Author:
ahu
Message:

implement some EDNS0 sanity checks

Files:
1 modified

Legend:

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

    r1238 r1252  
    443443 
    444444  if(getEDNSOpts(mdp, &edo)) { 
    445     d_maxreplylen=edo.d_packetsize; 
     445    d_maxreplylen=max(edo.d_packetsize, (uint16_t)1280); 
    446446 
    447447    for(vector<pair<uint16_t, string> >::const_iterator iter = edo.d_options.begin();