summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2004-12-15 10:12:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:37 -0500
commit37e5f14089bf70f78026b34d60917469e26a64ae (patch)
tree9025f48b540442f991539e95d9e3f60c5fe9d0a4 /source3
parent9e3453459c9166e71f483d67c04be2e49da6c561 (diff)
downloadsamba-37e5f14089bf70f78026b34d60917469e26a64ae.tar.gz
samba-37e5f14089bf70f78026b34d60917469e26a64ae.tar.bz2
samba-37e5f14089bf70f78026b34d60917469e26a64ae.zip
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 <sm@suse.de> for reporting this bug. Guenther (This used to be commit e7b81d679b487734e12a948f30f0ad88240f17f1)
Diffstat (limited to 'source3')
-rw-r--r--source3/sam/idmap_rid.c4
1 files 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);