From b85b18d7947fc2125a29b8be9878d66dfd1c79e5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 16 Jun 2006 22:40:07 +0000 Subject: r16311: Check for NULL return. Klocwork #998. Jeremy. (This used to be commit c430730f5a0dc00626b9b924e88adfb84cd48869) --- source3/smbd/nttrans.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit