From: Razvan Becheriu Date: Thu, 9 Apr 2026 20:57:58 +0000 (+0300) Subject: [#4367] handle all exceptions X-Git-Tag: Kea-3.1.8~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00663b623692c5ca49fb5a6564b6797ff2d670ee;p=thirdparty%2Fkea.git [#4367] handle all exceptions --- diff --git a/src/lib/dhcp_ddns/ncr_msg.cc b/src/lib/dhcp_ddns/ncr_msg.cc index 496785d3ce..1dc910e10a 100644 --- a/src/lib/dhcp_ddns/ncr_msg.cc +++ b/src/lib/dhcp_ddns/ncr_msg.cc @@ -309,6 +309,13 @@ NameChangeRequest::fromFormat(const NameChangeFormat format, // Read error accessing data in InputBuffer. isc_throw(NcrMessageError, "fromFormat: buffer read error: " << ex.what()); + } catch (const std::exception& ex) { + // known std error. + isc_throw(NcrMessageError, "fromFormat: buffer read error: " + << ex.what()); + } catch (...) { + // unknown error. + isc_throw(NcrMessageError, "fromFormat: buffer read error: unknown error"); } break;