summaryrefslogtreecommitdiff
path: root/dh.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 /dh.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 'dh.c')
-rw-r--r--dh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dh.c b/dh.c
index a30b704fb..e8ce3d1a9 100644
--- a/dh.c
+++ b/dh.c
@@ -45,7 +45,8 @@ parse_prime(int linenum, char *line, struct dhgroup *dhg)
45 char *strsize, *gen, *prime; 45 char *strsize, *gen, *prime;
46 46
47 cp = line; 47 cp = line;
48 arg = strdelim(&cp); 48 if ((arg = strdelim(&cp)) == NULL)
49 return 0;
49 /* Ignore leading whitespace */ 50 /* Ignore leading whitespace */
50 if (*arg == '\0') 51 if (*arg == '\0')
51 arg = strdelim(&cp); 52 arg = strdelim(&cp);