]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4367] handle all exceptions
authorRazvan Becheriu <razvan@isc.org>
Thu, 9 Apr 2026 20:57:58 +0000 (23:57 +0300)
committerRazvan Becheriu <razvan@isc.org>
Mon, 27 Apr 2026 12:41:35 +0000 (12:41 +0000)
src/lib/dhcp_ddns/ncr_msg.cc

index 496785d3cea33bef95d988cd3e500ee2eba732eb..1dc910e10a770f21690fdb73029c87187bb4cc5e 100644 (file)
@@ -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;