]> granicus.if.org Git - pdns/commitdiff
fix crash on error, plus add addDelay() to autocomplete
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 5 Jun 2015 21:00:48 +0000 (23:00 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 5 Jun 2015 21:00:48 +0000 (23:00 +0200)
pdns/dnsdist.cc

index c73620f2efd7ed100552d93953d4220cb03119f0..d373e7c39bf20e01e9ffd9e1f01166da9f107db1 100644 (file)
@@ -888,7 +888,7 @@ char* my_generator(const char* text, int state)
   vector<string> words{"showRules()", "shutdown()", "rmRule(", "mvRule(", "addACL(", "addLocal(", "setServerPolicy(", "setServerPolicyLua(",
       "newServer(", "rmServer(", "showServers()", "show(", "newDNSName(", "newSuffixMatchNode(", "controlSocket(", "topClients(", "showResponseLatency()", 
       "newQPSLimiter(", "makeKey()", "setKey(", "testCrypto()", "addAnyTCRule()", "showServerPolicy()", "setACL(", "showACL()", "addDomainBlock(", 
-      "addPoolRule(", "addQPSLimit(", "topResponses(", "topQueries(", "topRule()", "setDNSSECPool("};
+      "addPoolRule(", "addQPSLimit(", "topResponses(", "topQueries(", "topRule()", "setDNSSECPool(", "addDelay("};
   static int s_counter=0;
   int counter=0;
   if(!state)
@@ -1142,8 +1142,10 @@ try
 catch(std::exception &e)
 {
   errlog("Fatal error: %s", e.what());
+  _exit(EXIT_FAILURE);
 }
 catch(PDNSException &ae)
 {
   errlog("Fatal pdns error: %s", ae.reason);
+  _exit(EXIT_FAILURE);
 }