From 6e56e7cdf881460f6a6b5317d9e76c8deb2838c5 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 20 Jan 2001 23:00:57 +0000 Subject: Check for NULL return from strdelim; ok markus --- usr.bin/ssh/servconf.c | 4 ++-- 1 file 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; -- cgit v1.2.3