From be10c6b79e4519db90eb972d51d7495742cb5672 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 20 Feb 2015 23:18:32 +0100 Subject: [PATCH] rec_control: exit 1 on unknown command --- pdns/rec_control.cc | 4 ++++ 1 file changed, 4 insertions(+) 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<