summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/servconf.c
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-06-03 09:52:37 +0000
committerkris <kris@FreeBSD.org>2000-06-03 09:52:37 +0000
commit3639dd9acea182e29b2d59915fbb97029217d9b2 (patch)
tree2b0a0dae36e62d807780aa047b690ffacb266b19 /crypto/openssh/servconf.c
parent585dc667de870922b14ce5a99c088c1a68de7934 (diff)
downloadFreeBSD-src-3639dd9acea182e29b2d59915fbb97029217d9b2.zip
FreeBSD-src-3639dd9acea182e29b2d59915fbb97029217d9b2.tar.gz
Initial import of OpenSSH snapshot from 2000/05/30
Obtained from: OpenBSD
Diffstat (limited to 'crypto/openssh/servconf.c')
-rw-r--r--crypto/openssh/servconf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/openssh/servconf.c b/crypto/openssh/servconf.c
index 57f7050..4e3e5cc 100644
--- a/crypto/openssh/servconf.c
+++ b/crypto/openssh/servconf.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$Id: servconf.c,v 1.40 2000/05/08 17:12:15 markus Exp $");
+RCSID("$Id: servconf.c,v 1.41 2000/05/22 18:42:01 markus Exp $");
#include "ssh.h"
#include "servconf.h"
@@ -588,6 +588,8 @@ parse_flag:
case sCiphers:
cp = strtok(NULL, WHITESPACE);
+ if (!cp)
+ fatal("%s line %d: Missing argument.", filename, linenum);
if (!ciphers_valid(cp))
fatal("%s line %d: Bad SSH2 cipher spec '%s'.",
filename, linenum, cp ? cp : "<NONE>");
@@ -598,6 +600,8 @@ parse_flag:
case sProtocol:
intptr = &options->protocol;
cp = strtok(NULL, WHITESPACE);
+ if (!cp)
+ fatal("%s line %d: Missing argument.", filename, linenum);
value = proto_spec(cp);
if (value == SSH_PROTO_UNKNOWN)
fatal("%s line %d: Bad protocol spec '%s'.",
OpenPOWER on IntegriCloud