]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
calidns: Also handle `PDNSException`s in `main` 16703/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 7 Jan 2026 15:26:47 +0000 (16:26 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 7 Jan 2026 15:26:47 +0000 (16:26 +0100)
Reported by Coverity as CID 1644004: Uncaught exception.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/calidns.cc

index 49c4c412491091fee2aa2eadbbbb5b722864fbd6..511221446e47f8c21778f9083e5475d7561fcec4 100644 (file)
@@ -615,3 +615,8 @@ catch (const NetmaskException& exp)
   cerr<<"Fatal error: "<<exp.reason<<endl;
   return EXIT_FAILURE;
 }
+catch (const PDNSException& exp)
+{
+  cerr<<"Fatal error: "<<exp.reason<<endl;
+  return EXIT_FAILURE;
+}