libcli/security Use talloc_realloc() not TALLOC_REALLOC_ARRAY()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 26 Aug 2010 23:50:31 +0000 (09:50 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 11 Sep 2010 08:46:07 +0000 (18:46 +1000)
Signed-off-by: Andrew Tridgell <tridge@samba.org>
libcli/security/privileges.c

index 8c5ca347f53cf92676d354c300f1cca536ad1a4b..d72401af3fd7da9f9d8f62d33c8a758cd4c4ef49 100644 (file)
@@ -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;