]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
we consumed too much random (need only 128 bits), plus close ticket 147: we ignore...
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 22 Mar 2008 15:37:48 +0000 (15:37 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 22 Mar 2008 15:37:48 +0000 (15:37 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1164 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/pdns_recursor.cc

index 91f820344cd97d643aac1b489a182b2feb997b51..6b4dea499d72d8735f579bbd48526eda18e00a12 100644 (file)
@@ -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<<Logger::Error<<"Unable to open source of random '"<<source<<"': "<<stringerror()<<endl;
     exit(EXIT_FAILURE);
   }
-  char seed[128];
+  char seed[16];
   int ret;
   int pos=0;
   while(pos!=sizeof(seed)) {