From: Peter van Dijk Date: Thu, 12 Jul 2012 10:02:39 +0000 (+0000) Subject: make sure pdnssec test-algorithm has an argument X-Git-Tag: auth-3.2-rc1~205 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2551cc18b745fe10f94ef2f7138baecddaed2b31;p=thirdparty%2Fpdns.git make sure pdnssec test-algorithm has an argument git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2675 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index 1b44880309..3fca9a665d 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -516,6 +516,10 @@ try } if (cmds[0] == "test-algorithm") { + if(cmds.size() != 2) { + cerr << "Syntax: pdnssec test-algorithm algonum"<(cmds[1])); return 0; }