summaryrefslogtreecommitdiff
path: root/dh.c
diff options
context:
space:
mode:
authormouring <mouring>2002-07-04 00:03:56 +0000
committermouring <mouring>2002-07-04 00:03:56 +0000
commit2ffc87e05238d226d3665f47a488d22d84b4e72d (patch)
treefc408ed0f640020c2fa664a6e616eac9535a959b /dh.c
parentd7bb2b828822dd1326401b9975c857af6648bd1c (diff)
downloadopenssh-2ffc87e05238d226d3665f47a488d22d84b4e72d.tar.gz
- markus@cvs.openbsd.org 2002/06/27 08:49:44
[dh.c ssh-keyscan.c sshconnect.c] more checks for NULL pointers; from grendel@zeitbombe.org; ok deraadt@
Diffstat (limited to 'dh.c')
-rw-r--r--dh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dh.c b/dh.c
index 33187e02..6ec37867 100644
--- a/dh.c
+++ b/dh.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: dh.c,v 1.21 2002/03/06 00:23:27 markus Exp $");
+RCSID("$OpenBSD: dh.c,v 1.22 2002/06/27 08:49:44 markus Exp $");
#include "xmalloc.h"
@@ -50,7 +50,7 @@ parse_prime(int linenum, char *line, struct dhgroup *dhg)
/* Ignore leading whitespace */
if (*arg == '\0')
arg = strdelim(&cp);
- if (!*arg || *arg == '#')
+ if (!arg || !*arg || *arg == '#')
return 0;
/* time */