diff options
author | Jeremy Allison <jra@samba.org> | 2006-08-28 04:55:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:56 -0500 |
commit | 1adb3b2432187e9a19b78cfa5762c3e05a357392 (patch) | |
tree | 3bec50f9891a11c4a91433e0efd17ea4f403659e /source/web | |
parent | ac06fc42cb9b1e2304d44653614aeaa7c537f34b (diff) | |
download | samba-1adb3b2432187e9a19b78cfa5762c3e05a357392.tar.gz samba-1adb3b2432187e9a19b78cfa5762c3e05a357392.tar.xz samba-1adb3b2432187e9a19b78cfa5762c3e05a357392.zip |
r17873: Fix possible null deref found by Stanford checker.
Jeremy.
Diffstat (limited to 'source/web')
-rw-r--r-- | source/web/cgi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/web/cgi.c b/source/web/cgi.c index d289613b4ba..046dd3bee62 100644 --- a/source/web/cgi.c +++ b/source/web/cgi.c @@ -80,8 +80,9 @@ static char *grab_line(FILE *f, int *cl) } - - ret[i] = 0; + if (ret) { + ret[i] = 0; + } return ret; } |