From: bert hubert Date: Wed, 13 May 2015 09:41:05 +0000 (+0200) Subject: fix crash on finding a forward label in dnsreplay - I think this should turn into... X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~28^2~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b2ce3443bbf6bd51531e9bd76fe5ac03e05392e;p=thirdparty%2Fpdns.git fix crash on finding a forward label in dnsreplay - I think this should turn into a MOADNSException though! --- diff --git a/pdns/dnsreplay.cc b/pdns/dnsreplay.cc index ef30bce9d0..582de7d494 100644 --- a/pdns/dnsreplay.cc +++ b/pdns/dnsreplay.cc @@ -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++;