summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-08-27 09:50:31 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-09-11 18:46:07 +1000
commitf85b822bd4feaab179ffbf00496fcb7d1905fc8c (patch)
treeb5ff6779ed21abe756b87d8603e303f1b7cf207f /libcli
parent3f589c2155557c02c9dc0eeee972bb68c1fd147f (diff)
downloadsamba-f85b822bd4feaab179ffbf00496fcb7d1905fc8c.tar.gz
samba-f85b822bd4feaab179ffbf00496fcb7d1905fc8c.tar.bz2
samba-f85b822bd4feaab179ffbf00496fcb7d1905fc8c.zip
libcli/security Use talloc_realloc() not TALLOC_REALLOC_ARRAY()
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/security/privileges.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/security/privileges.c b/libcli/security/privileges.c
index 8c5ca347f5..d72401af3f 100644
--- a/libcli/security/privileges.c
+++ b/libcli/security/privileges.c
@@ -371,7 +371,7 @@ static bool privilege_set_add(PRIVILEGE_SET *priv_set, struct lsa_LUIDAttribute
/* we can allocate memory to add the new privilege */
- new_set = TALLOC_REALLOC_ARRAY(priv_set->mem_ctx, priv_set->set, struct lsa_LUIDAttribute, priv_set->count + 1);
+ new_set = talloc_realloc(priv_set->mem_ctx, priv_set->set, struct lsa_LUIDAttribute, priv_set->count + 1);
if ( !new_set ) {
DEBUG(0,("privilege_set_add: failed to allocate memory!\n"));
return false;