summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/servconf.c b/servconf.c
index 05630c766..1aa4fe06d 100644
--- a/servconf.c
+++ b/servconf.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$Id: servconf.c,v 1.16 2000/05/09 01:03:01 damien Exp $"); 15RCSID("$Id: servconf.c,v 1.17 2000/05/30 03:44:53 damien Exp $");
16 16
17#include "ssh.h" 17#include "ssh.h"
18#include "servconf.h" 18#include "servconf.h"
@@ -588,6 +588,8 @@ parse_flag:
588 588
589 case sCiphers: 589 case sCiphers:
590 cp = strtok(NULL, WHITESPACE); 590 cp = strtok(NULL, WHITESPACE);
591 if (!cp)
592 fatal("%s line %d: Missing argument.", filename, linenum);
591 if (!ciphers_valid(cp)) 593 if (!ciphers_valid(cp))
592 fatal("%s line %d: Bad SSH2 cipher spec '%s'.", 594 fatal("%s line %d: Bad SSH2 cipher spec '%s'.",
593 filename, linenum, cp ? cp : "<NONE>"); 595 filename, linenum, cp ? cp : "<NONE>");
@@ -598,6 +600,8 @@ parse_flag:
598 case sProtocol: 600 case sProtocol:
599 intptr = &options->protocol; 601 intptr = &options->protocol;
600 cp = strtok(NULL, WHITESPACE); 602 cp = strtok(NULL, WHITESPACE);
603 if (!cp)
604 fatal("%s line %d: Missing argument.", filename, linenum);
601 value = proto_spec(cp); 605 value = proto_spec(cp);
602 if (value == SSH_PROTO_UNKNOWN) 606 if (value == SSH_PROTO_UNKNOWN)
603 fatal("%s line %d: Bad protocol spec '%s'.", 607 fatal("%s line %d: Bad protocol spec '%s'.",