summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2001-01-20 23:00:57 +0000
committerDamien Miller <djm@cvs.openbsd.org>2001-01-20 23:00:57 +0000
commit6e56e7cdf881460f6a6b5317d9e76c8deb2838c5 (patch)
tree7b8ecb37b0cf797d628b8559f73ee2f4f68feedc /usr.bin
parenta5589c1c3504c78cb17b43f1b74f8963468812fa (diff)
Check for NULL return from strdelim; ok markus
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/servconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/servconf.c b/usr.bin/ssh/servconf.c
index 3da10ff2ddd..036eeb63289 100644
--- a/usr.bin/ssh/servconf.c
+++ b/usr.bin/ssh/servconf.c
@@ -10,7 +10,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: servconf.c,v 1.60 2001/01/19 15:55:11 markus Exp $");
+RCSID("$OpenBSD: servconf.c,v 1.61 2001/01/20 23:00:56 djm Exp $");
#include "ssh.h"
#include "servconf.h"
@@ -333,7 +333,7 @@ read_server_config(ServerOptions *options, const char *filename)
/* Ignore leading whitespace */
if (*arg == '\0')
arg = strdelim(&cp);
- if (!*arg || *arg == '#')
+ if (!arg || !*arg || *arg == '#')
continue;
intptr = NULL;
charptr = NULL;