]> granicus.if.org Git - pdns/commitdiff
Sets d_server to NULL on failed initialization
authorAki Tuomi <cmouse@cmouse.fi>
Mon, 9 Dec 2013 18:24:38 +0000 (20:24 +0200)
committerAki Tuomi <cmouse@cmouse.fi>
Mon, 9 Dec 2013 18:24:38 +0000 (20:24 +0200)
pdns/webserver.cc

index 516f3a9780ee6a35905982c01563014de62c6754..e5980bf6c2a69c8f86a3c8407123a80c89c2263d 100644 (file)
@@ -258,6 +258,7 @@ WebServer::WebServer(const string &listenaddress, int port, const string &passwo
   }
   catch(SessionException &e) {
     L<<Logger::Error<<"Fatal error in webserver: "<<e.reason<<endl;
+    d_server = NULL;
   }
 }