summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-10-16 03:12:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:07 -0500
commitb0fadb51b210d6400bc66bce8603b522e1aad347 (patch)
tree293a44ce2065b320bdf0af30244443749953c04e /source4/dsdb/samdb/ldb_modules
parent508a04fe579ae3fcb9480f8e951cb6eaaf620d19 (diff)
downloadsamba-b0fadb51b210d6400bc66bce8603b522e1aad347.tar.gz
samba-b0fadb51b210d6400bc66bce8603b522e1aad347.tar.bz2
samba-b0fadb51b210d6400bc66bce8603b522e1aad347.zip
r19313: Don't mess with hierarchies!!
There is a reason why we use them :-) (This used to be commit e3b7e91299559ddc7f300be53785d313a4aa90fc)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samba3sam.c2
1 files changed, 1 insertions, 1 deletions
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;