Show
Ignore:
Timestamp:
10/31/05 19:07:49 (8 years ago)
Author:
ahu
Message:

oops - exception could escape, which could make the pdns_recursor keel over

Files:
1 modified

Legend:

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

    r525 r532  
    169169  PacketReader pr(d_content); 
    170170 
    171   for(n=0;n < d_header.qdcount; ++n) { 
    172     d_qname=pr.getLabel(); 
    173     d_qtype=pr.get16BitInt(); 
    174     d_qclass=pr.get16BitInt(); 
    175   } 
    176  
    177171  try { 
     172    for(n=0;n < d_header.qdcount; ++n) { 
     173      d_qname=pr.getLabel(); 
     174      d_qtype=pr.get16BitInt(); 
     175      d_qclass=pr.get16BitInt(); 
     176    } 
     177 
    178178    struct dnsrecordheader ah; 
    179179    vector<unsigned char> record;