mirror of
https://github.com/samba-team/samba.git
synced 2025-03-29 02:50:28 +03:00
s3 wbinfo: Avoid ADD_TO_ARRAY macro.
This commit is contained in:
parent
90b6e41b83
commit
b6ea2ece09
@ -1076,7 +1076,12 @@ static bool wbinfo_lookuprids(const char *domain, const char *arg)
|
||||
|
||||
while (next_token_talloc(mem_ctx, &p, &ridstr, " ,\n")) {
|
||||
uint32_t rid = strtoul(ridstr, NULL, 10);
|
||||
ADD_TO_ARRAY(mem_ctx, uint32_t, rid, &rids, &num_rids);
|
||||
rids = talloc_realloc(mem_ctx, rids, uint32_t, num_rids + 1);
|
||||
if (rids == NULL) {
|
||||
d_printf("talloc_realloc failed\n");
|
||||
}
|
||||
rids[num_rids] = rid;
|
||||
num_rids += 1;
|
||||
}
|
||||
|
||||
if (rids == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user