]> granicus.if.org Git - pdns/commitdiff
bugfix - stored results AFTER storing record
authorBert Hubert <bert.hubert@netherlabs.nl>
Sun, 3 Jul 2005 22:03:53 +0000 (22:03 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sun, 3 Jul 2005 22:03:53 +0000 (22:03 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@425 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnsparser.cc

index d15177400d1fbd1aa46f340c3284bd5cd5db7e5c..65b31c11c7826765be241718ad62f70891ce77df 100644 (file)
@@ -108,10 +108,9 @@ void MOADNSParser::init(const char *packet, unsigned int len)
       
       dr.d_label=label;
       dr.d_clen=ah.d_clen;
-      d_answers.push_back(make_pair(dr, pr.d_pos));
-      
       
       dr.d_content=boost::shared_ptr<DNSRecordContent>(DNSRecordContent::mastermake(dr, pr));
+      d_answers.push_back(make_pair(dr, pr.d_pos));
     }
     
     if(pr.d_pos!=contentlen) {