summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-26 13:53:32 +1100
committerDamien Miller <djm@mindrot.org>2006-03-26 13:53:32 +1100
commit928b23684a1d94dc2bc1cecc75b0e596eb7a4cb9 (patch)
tree517691f8fb0f6e16746524d9eee3d61582cbe0e6 /readconf.c
parent6db780e259f985b9c88dff222eb56b4726a5a5e1 (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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/readconf.c b/readconf.c
index 1112d0d86..e2e10d9d6 100644
--- a/readconf.c
+++ b/readconf.c
@@ -324,7 +324,8 @@ process_config_line(Options *options, const char *host,
324 324
325 s = line; 325 s = line;
326 /* Get the keyword. (Each line is supposed to begin with a keyword). */ 326 /* Get the keyword. (Each line is supposed to begin with a keyword). */
327 keyword = strdelim(&s); 327 if ((keyword = strdelim(&s)) == NULL)
328 return 0;
328 /* Ignore leading whitespace. */ 329 /* Ignore leading whitespace. */
329 if (*keyword == '\0') 330 if (*keyword == '\0')
330 keyword = strdelim(&s); 331 keyword = strdelim(&s);