]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
ixfrdist: Fix Coverity CID 1504137: Uncaught exception
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 16 Aug 2023 08:15:42 +0000 (10:15 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 16 Aug 2023 08:15:42 +0000 (10:15 +0200)
pdns/ixfrdist.cc

index 8fcd1c51c62a51b5b05e472b67db58c87803a1b0..8fba8199c3e3b17acddcb9179de8c0faa4f52f2e 100644 (file)
@@ -1366,6 +1366,10 @@ static std::optional<IXFRDistConfiguration> parseConfiguration(int argc, char**
         g_log<<Logger::Error<<"Could not set the webserver ACL: "<<ne.reason<<endl;
         had_error = true;
       }
+      catch (const std::exception& exp) {
+        g_log<<Logger::Error<<"Could not set the webserver ACL: "<<exp.what()<<endl;
+        had_error = true;
+      }
 
       if (config["webserver-loglevel"]) {
         configuration.wsLogLevel = config["webserver-loglevel"].as<string>();