From b930c125ca3e8861eac8876867a4731f93029f33 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Thu, 23 Mar 2000 19:03:32 +0000 Subject: [PATCH] Fixed missing braces reported on bind9-workers. The rewritten keygen should hopefully go in just after b2. --- bin/dnssec/dnssec-keygen.c | 5 +++-- bin/tests/keygen.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/dnssec/dnssec-keygen.c b/bin/dnssec/dnssec-keygen.c index b7a764f663..cfdc04fa45 100644 --- a/bin/dnssec/dnssec-keygen.c +++ b/bin/dnssec/dnssec-keygen.c @@ -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 @@ -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; diff --git a/bin/tests/keygen.c b/bin/tests/keygen.c index 5758cbc842..da20cce5a8 100644 --- a/bin/tests/keygen.c +++ b/bin/tests/keygen.c @@ -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 @@ -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;