summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-03 05:27:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:18 -0500
commitc9932a3a92dd7b8696e4e145c7d7e2c080b46ffb (patch)
tree53f0ca26b9509a08dcc9524f0a36932223fd5dc1 /source4
parentcef92d7fd5f5bff8e59d286058bc035cb54166b6 (diff)
downloadsamba-c9932a3a92dd7b8696e4e145c7d7e2c080b46ffb.tar.gz
samba-c9932a3a92dd7b8696e4e145c7d7e2c080b46ffb.tar.bz2
samba-c9932a3a92dd7b8696e4e145c7d7e2c080b46ffb.zip
r4051: use talloc_array() instead of talloc() when allocating arrays in auto-generated ndr code
(This used to be commit 90cdfd921e1a6f8806fe94bba61f1bbaa79c79f1)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/ndr/libndr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/ndr/libndr.h b/source4/librpc/ndr/libndr.h
index 8a160c5deb..1cec8d4c2a 100644
--- a/source4/librpc/ndr/libndr.h
+++ b/source4/librpc/ndr/libndr.h
@@ -233,7 +233,7 @@ enum ndr_err_code {
if ((n) == 0) { \
(s) = NULL; \
} else { \
- (s) = talloc(ndr, (n) * elsize); \
+ (s) = talloc_array(ndr, elsize, n, __location__); \
if (!(s)) return ndr_pull_error(ndr, \
NDR_ERR_ALLOC, \
"Alloc %u * %u failed\n", \