summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-16 22:40:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:33 -0500
commitb85b18d7947fc2125a29b8be9878d66dfd1c79e5 (patch)
tree021821077618c12c396fcc87c7f361ed99463120 /source3
parent17621ea080b7a3da71fcaa0782f8716e944dbc70 (diff)
downloadsamba-b85b18d7947fc2125a29b8be9878d66dfd1c79e5.tar.gz
samba-b85b18d7947fc2125a29b8be9878d66dfd1c79e5.tar.bz2
samba-b85b18d7947fc2125a29b8be9878d66dfd1c79e5.zip
r16311: Check for NULL return. Klocwork #998.
Jeremy. (This used to be commit c430730f5a0dc00626b9b924e88adfb84cd48869)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/nttrans.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 142ff39245..e397139d2e 100644
--- 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;