mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 14:19:59 -04:00
Fixed missing braces reported on bind9-workers. The rewritten keygen should
hopefully go in just after b2.
This commit is contained in:
parent
e49d50b443
commit
b930c125ca
2 changed files with 6 additions and 4 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dnssec-keygen.c,v 1.9 2000/03/17 17:48:44 gson Exp $ */
|
||||
/* $Id: dnssec-keygen.c,v 1.10 2000/03/23 19:03:32 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -80,10 +80,11 @@ main(int argc, char **argv) {
|
|||
break;
|
||||
case 'p':
|
||||
if (isc_commandline_argument != NULL &&
|
||||
isdigit(isc_commandline_argument[0] & 0xff))
|
||||
isdigit(isc_commandline_argument[0] & 0xff)) {
|
||||
protocol = atoi(isc_commandline_argument);
|
||||
if (protocol < 0 || protocol > 255)
|
||||
die("-p value is not [0..15]");
|
||||
}
|
||||
else
|
||||
die("-p not followed by a number [0..255]");
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: keygen.c,v 1.9 2000/03/17 17:48:44 gson Exp $ */
|
||||
/* $Id: keygen.c,v 1.10 2000/03/23 19:03:32 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -80,10 +80,11 @@ main(int argc, char **argv) {
|
|||
break;
|
||||
case 'p':
|
||||
if (isc_commandline_argument != NULL &&
|
||||
isdigit(isc_commandline_argument[0] & 0xff))
|
||||
isdigit(isc_commandline_argument[0] & 0xff)) {
|
||||
protocol = atoi(isc_commandline_argument);
|
||||
if (protocol < 0 || protocol > 255)
|
||||
die("-p value is not [0..15]");
|
||||
}
|
||||
else
|
||||
die("-p not followed by a number [0..255]");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue