Skip to content

Commit ceb49ce

Browse files
committed
pdns_control: exit 1 on unknown command
Fixes #1295 (cherry picked from commit 72ab36f)
1 parent eb2c00a commit ceb49ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pdns/dynloader.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ int main(int argc, char **argv)
148148
}
149149

150150
string resp=D->receive();
151+
if(resp.compare(0, 7, "Unknown") == 0) {
152+
cerr<<resp<<endl;
153+
return 1;
154+
}
151155

152156
cout<<resp<<endl;
153157
}

0 commit comments

Comments
 (0)