1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r19313: Don't mess with hierarchies!!

There is a reason why we use them :-)
(This used to be commit e3b7e91299)
This commit is contained in:
Simo Sorce 2006-10-16 03:12:48 +00:00 committed by Gerald (Jerry) Carter
parent 508a04fe57
commit b0fadb51b2

View File

@ -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;