From b0fadb51b210d6400bc66bce8603b522e1aad347 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 16 Oct 2006 03:12:48 +0000 Subject: r19313: Don't mess with hierarchies!! There is a reason why we use them :-) (This used to be commit e3b7e91299559ddc7f300be53785d313a4aa90fc) --- source4/dsdb/samdb/ldb_modules/samba3sam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/samba3sam.c b/source4/dsdb/samdb/ldb_modules/samba3sam.c index fcbcf0f421..341fad4bd9 100644 --- a/source4/dsdb/samdb/ldb_modules/samba3sam.c +++ b/source4/dsdb/samdb/ldb_modules/samba3sam.c @@ -67,7 +67,7 @@ static struct ldb_message_element *generate_primaryGroupID(struct ldb_module *mo el->name = talloc_strdup(ctx, "primaryGroupID"); el->num_values = 1; el->values = talloc_array(ctx, struct ldb_val, 1); - el->values[0].data = (uint8_t *)talloc_strdup(ctx, strchr(sid, '-')+1); + el->values[0].data = (uint8_t *)talloc_strdup(el->values, strchr(sid, '-')+1); el->values[0].length = strlen((char *)el->values[0].data); return el; -- cgit