git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17621ea
)
r16311: Check for NULL return. Klocwork #998.
author
Jeremy Allison
<jra@samba.org>
Fri, 16 Jun 2006 22:40:07 +0000
(22:40 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:17:33 +0000
(11:17 -0500)
Jeremy.
(This used to be commit
c430730f5a0dc00626b9b924e88adfb84cd48869
)
source3/smbd/nttrans.c
patch
|
blob
|
history
diff --git
a/source3/smbd/nttrans.c
b/source3/smbd/nttrans.c
index 142ff39245461ca3ec7b414f65c01af6d684e0c8..e397139d2efe443da2af89420e7835a9ceff23d7 100644
(file)
--- a/
source3/smbd/nttrans.c
+++ b/
source3/smbd/nttrans.c
@@
-1063,6
+1063,10
@@
static struct ea_list *read_nttrans_ea_list(TALLOC_CTX *ctx, const char *pdata,
struct ea_list *tmp;
struct ea_list *eal = read_ea_list_entry(ctx, pdata + offset + 4, data_size - offset - 4, NULL);
+ if (!eal) {
+ return NULL;
+ }
+
DLIST_ADD_END(ea_list_head, eal, tmp);
if (next_offset == 0) {
break;