Skip to content

Commit

Permalink
make sure we don't throw an exception on "pdns_control show" of an un…
Browse files Browse the repository at this point in the history
…known variable
  • Loading branch information
ahupowerdns authored and mind04 committed Dec 23, 2014
1 parent 63c8088 commit d45c1f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pdns/dynhandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ string DLPingHandler(const vector<string>&parts, Utility::pid_t ppid)
}

string DLShowHandler(const vector<string>&parts, Utility::pid_t ppid)
try
{
extern StatBag S;
string ret("Wrong number of parameters");
Expand All @@ -90,7 +91,10 @@ string DLShowHandler(const vector<string>&parts, Utility::pid_t ppid)

return ret;
}

catch(...)
{
return "Unknown";
}

void setStatus(const string &str)
{
Expand Down

0 comments on commit d45c1f1

Please sign in to comment.