diff options
author | Jeremy Allison <jra@samba.org> | 2006-06-19 21:47:46 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:18:49 -0500 |
commit | 96a54e7d23070b6779134dac393406a770e6f581 (patch) | |
tree | 899ecee516d3f73bc475f5ae618c0608b56c60a7 | |
parent | 1b64f06048736ac039beb1a33def67f9a665bcf2 (diff) | |
download | samba-96a54e7d23070b6779134dac393406a770e6f581.tar.gz samba-96a54e7d23070b6779134dac393406a770e6f581.tar.bz2 samba-96a54e7d23070b6779134dac393406a770e6f581.zip |
r16369: Klocwork #1035.
Jeremy.
(This used to be commit 6924d1cd443e4f7eb7b634c97c92effd6373ff12)
-rw-r--r-- | source3/rpc_parse/parse_lsa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c index 12f18d319b..ae4cff53e4 100644 --- a/source3/rpc_parse/parse_lsa.c +++ b/source3/rpc_parse/parse_lsa.c @@ -738,6 +738,9 @@ static BOOL lsa_io_dom_query_2(const char *desc, DOM_QUERY_2 *d_q, prs_struct *p if (UNMARSHALLING(ps)) { d_q->auditsettings = TALLOC_ZERO_ARRAY(ps->mem_ctx, uint32, d_q->count2); + if (!d_q->auditsettings) { + return False; + } } if (!prs_uint32s(False, "auditsettings", ps, depth, d_q->auditsettings, d_q->count2)) |