Changeset 1164

Show
Ignore:
Timestamp:
03/22/08 16:37:48 (5 years ago)
Author:
ahu
Message:

we consumed too much random (need only 128 bits), plus close ticket 147: we ignore the TTL in zones the recursor is auth for, thanks to Stefan Schmidt

Files:
1 modified

Legend:

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

    r1160 r1164  
    14941494          try { 
    14951495            string tmp=DNSRR2String(rr); 
    1496             rr=String2DNSRR(rr.qname, rr.qtype, tmp, 3600); 
     1496            rr=String2DNSRR(rr.qname, rr.qtype, tmp, rr.ttl); 
    14971497          } 
    14981498          catch(exception &e) { 
     
    18381838    exit(EXIT_FAILURE); 
    18391839  } 
    1840   char seed[128]; 
     1840  char seed[16]; 
    18411841  int ret; 
    18421842  int pos=0;