diff options
author | 2001-01-20 17:59:40 +0000 | |
---|---|---|
committer | 2001-01-20 17:59:40 +0000 | |
commit | de1160446562492a6f4f9eca9c5b352d0ee69b96 (patch) | |
tree | f0d3ae55a739bb0779c57567619a6a1982d0457f | |
parent | style(9) in example code. (diff) | |
download | wireguard-openbsd-de1160446562492a6f4f9eca9c5b352d0ee69b96.tar.xz wireguard-openbsd-de1160446562492a6f4f9eca9c5b352d0ee69b96.zip |
fix SIGSEGV from -o ""; problem noted by jehsom@togetherweb.com
-rw-r--r-- | usr.bin/ssh/readconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/readconf.c b/usr.bin/ssh/readconf.c index f6fa869a8e7..cdcb5ea4235 100644 --- a/usr.bin/ssh/readconf.c +++ b/usr.bin/ssh/readconf.c @@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: readconf.c,v 1.55 2001/01/19 15:55:11 markus Exp $"); +RCSID("$OpenBSD: readconf.c,v 1.56 2001/01/20 17:59:40 deraadt Exp $"); #include "ssh.h" #include "readconf.h" @@ -246,7 +246,7 @@ process_config_line(Options *options, const char *host, /* Ignore leading whitespace. */ if (*keyword == '\0') keyword = strdelim(&s); - if (!*keyword || *keyword == '\n' || *keyword == '#') + if (keyword == NULL || !*keyword || *keyword == '\n' || *keyword == '#') return 0; opcode = parse_token(keyword, filename, linenum); |