From 2b2ce3443bbf6bd51531e9bd76fe5ac03e05392e Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 13 May 2015 11:41:05 +0200 Subject: [PATCH] fix crash on finding a forward label in dnsreplay - I think this should turn into a MOADNSException though! --- pdns/dnsreplay.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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++; -- 2.47.2