From 6fe42452640323efac2a6776a4e9316bc06eda59 Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Sat, 22 Mar 2008 15:37:48 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1164 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- pdns/pdns_recursor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 91f820344c..6b4dea499d 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1493,7 +1493,7 @@ void parseAuthAndForwards() while(zpt.get(rr)) { try { string tmp=DNSRR2String(rr); - rr=String2DNSRR(rr.qname, rr.qtype, tmp, 3600); + rr=String2DNSRR(rr.qname, rr.qtype, tmp, rr.ttl); } catch(exception &e) { throw AhuException("Error parsing record '"+rr.qname+"' of type "+rr.qtype.getName()+" in zone '"+headers.first+"' from file '"+headers.second+"': "+e.what()); @@ -1837,7 +1837,7 @@ void seedRandom(const string& source) L<