]> granicus.if.org Git - pdns/commitdiff
fix crash on finding a forward label in dnsreplay - I think this should turn into...
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 13 May 2015 09:41:05 +0000 (11:41 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 13 May 2015 09:41:05 +0000 (11:41 +0200)
pdns/dnsreplay.cc

index ef30bce9d03e767e624ce9a57e391215296001e2..582de7d494f7f1bde14ef8ed1d2967a3d32ea53a 100644 (file)
@@ -443,6 +443,10 @@ try
     {
       s_wednserrors++;
     }
+    catch(std::exception& e) 
+    {
+      s_wednserrors++;
+    }
   }
 }
 catch(std::exception& e)
@@ -610,7 +614,7 @@ bool sendPacketFromPR(PcapPacketReader& pr, const ComboAddress& remote)
     s_idmanager.releaseID(qd.d_assignedID);  // not added to qids for cleanup
     s_origdnserrors++;
   }
-  catch(std::out_of_range &e)
+  catch(std::exception &e)
   {
     s_idmanager.releaseID(qd.d_assignedID);  // not added to qids for cleanup
     s_origdnserrors++;