From 37e5f14089bf70f78026b34d60917469e26a64ae Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 15 Dec 2004 10:12:10 +0000 Subject: r4216: fix segfault in idmap_rid (only ever shows up when the somewhat hidden IDMAP_RID_SUPPORT_TRUSTED_DOMAINS - define is set). Thanks to Stephan Martin for reporting this bug. Guenther (This used to be commit e7b81d679b487734e12a948f30f0ad88240f17f1) --- source3/sam/idmap_rid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/sam/idmap_rid.c b/source3/sam/idmap_rid.c index 48b38fb0d8..8a50839c7e 100644 --- a/source3/sam/idmap_rid.c +++ b/source3/sam/idmap_rid.c @@ -272,8 +272,8 @@ static NTSTATUS rid_idmap_get_domains(uint32 *num_domains, fstring **domain_name /* put the results together */ *num_domains = trusted_num_domains + 1; - *domain_names = (fstring *) realloc(domain_names, sizeof(fstring) * *num_domains); - *domain_sids = (DOM_SID *) realloc(domain_sids, sizeof(DOM_SID) * *num_domains); + *domain_names = (fstring *) realloc(*domain_names, sizeof(fstring) * *num_domains); + *domain_sids = (DOM_SID *) realloc(*domain_sids, sizeof(DOM_SID) * *num_domains); /* first add myself at the end*/ fstrcpy((*domain_names)[0], domain_name); -- cgit