]> granicus.if.org Git - pdns/commitdiff
return 0 from serveConnection even after exceptions
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 25 Oct 2013 10:19:12 +0000 (12:19 +0200)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 25 Oct 2013 10:19:28 +0000 (12:19 +0200)
pdns/webserver.cc

index e759d1ef87bb4467c55adcab71c8978a95c26177..323ef6111ac77d989af04e6ce96ff5efc62d9c88 100644 (file)
@@ -206,18 +206,21 @@ try {
 }
 catch(SessionTimeoutException &e) {
   // L<<Logger::Error<<"Timeout in webserver"<<endl;
+  return 0;
 }
 catch(PDNSException &e) {
   L<<Logger::Error<<"Exception in webserver: "<<e.reason<<endl;
+  return 0;
 }
 catch(std::exception &e) {
   L<<Logger::Error<<"STL Exception in webserver: "<<e.what()<<endl;
+  return 0;
 }
 catch(...) {
   L<<Logger::Error<<"Unknown exception in webserver"<<endl;
+  return 0;
 }
 
-
 WebServer::WebServer(const string &listenaddress, int port, const string &password)
 {
   d_listenaddress=listenaddress;