summaryrefslogtreecommitdiffstats
path: root/source/web
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-08-28 04:55:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:56 -0500
commit1adb3b2432187e9a19b78cfa5762c3e05a357392 (patch)
tree3bec50f9891a11c4a91433e0efd17ea4f403659e /source/web
parentac06fc42cb9b1e2304d44653614aeaa7c537f34b (diff)
downloadsamba-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.c5
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;
}