git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35a5732
)
r16597: Klocwork #2006. Fix possible null deref.
author
Jeremy Allison
<jra@samba.org>
Wed, 28 Jun 2006 01:59:04 +0000
(
01:59
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:19:02 +0000
(11:19 -0500)
Jeremy.
(This used to be commit
9b73385d6b90c7806d8ccfc1f2354ede761fad61
)
source3/web/neg_lang.c
patch
|
blob
|
history
diff --git
a/source3/web/neg_lang.c
b/source3/web/neg_lang.c
index ca671822d87a7f3301049fba276e55addd735b8c..fb79f41f13c9ac9a87e3e00bb4d7f947728461cd 100644
(file)
--- a/
source3/web/neg_lang.c
+++ b/
source3/web/neg_lang.c
@@
-86,6
+86,10
@@
void web_set_lang(const char *lang_string)
lang_num++;
}
pl = SMB_MALLOC_ARRAY(struct pri_list, lang_num);
+ if (!pl) {
+ return;
+ }
+
for (i = 0; i < lang_num; i++) {
char *pri_code;
if ((pri_code=strstr(lang_list[i], ";q="))) {