From: Ruben Kerkhof Date: Fri, 20 Feb 2015 22:18:32 +0000 (+0100) Subject: rec_control: exit 1 on unknown command X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~115^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be10c6b79e4519db90eb972d51d7495742cb5672;p=pdns rec_control: exit 1 on unknown command --- diff --git a/pdns/rec_control.cc b/pdns/rec_control.cc index c282126bc..fb30046d9 100644 --- a/pdns/rec_control.cc +++ b/pdns/rec_control.cc @@ -98,6 +98,10 @@ try } rccS.send(command); string receive=rccS.recv(0, arg().asNum("timeout")); + if(receive.compare(0, 7, "Unknown") == 0) { + cerr<