Permalink
Browse files

pdns_control: exit 1 on unknown command

Fixes #1295

(cherry picked from commit 72ab36f)
  • Loading branch information...
1 parent eb2c00a commit ceb49cee45b8672ed786abb2a8fd714e4445eaf7 @rubenk rubenk committed Feb 20, 2015
Showing with 4 additions and 0 deletions.
  1. +4 −0 pdns/dynloader.cc
View
@@ -148,6 +148,10 @@ int main(int argc, char **argv)
}
string resp=D->receive();
+ if(resp.compare(0, 7, "Unknown") == 0) {
+ cerr<<resp<<endl;
+ return 1;
+ }
cout<<resp<<endl;
}

0 comments on commit ceb49ce

Please sign in to comment.