diff options
author | mouring <mouring> | 2002-07-04 00:03:56 +0000 |
---|---|---|
committer | mouring <mouring> | 2002-07-04 00:03:56 +0000 |
commit | 2ffc87e05238d226d3665f47a488d22d84b4e72d (patch) | |
tree | fc408ed0f640020c2fa664a6e616eac9535a959b /dh.c | |
parent | d7bb2b828822dd1326401b9975c857af6648bd1c (diff) | |
download | openssh-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |