diff options
author | Damien Miller <djm@mindrot.org> | 2006-03-26 13:53:32 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-03-26 13:53:32 +1100 |
commit | 928b23684a1d94dc2bc1cecc75b0e596eb7a4cb9 (patch) | |
tree | 517691f8fb0f6e16746524d9eee3d61582cbe0e6 /readconf.c | |
parent | 6db780e259f985b9c88dff222eb56b4726a5a5e1 (diff) |
- djm@cvs.openbsd.org 2006/03/19 02:24:05
[dh.c readconf.c servconf.c]
potential NULL pointer dereferences detected by Coverity
via elad AT netbsd.org; ok deraadt@
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -324,7 +324,8 @@ process_config_line(Options *options, const char *host, s = line; /* Get the keyword. (Each line is supposed to begin with a keyword). */ - keyword = strdelim(&s); + if ((keyword = strdelim(&s)) == NULL) + return 0; /* Ignore leading whitespace. */ if (*keyword == '\0') keyword = strdelim(&s); |