1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

r2713: better handling of binary values in index key creation

(This used to be commit b0c92616fb)
This commit is contained in:
Andrew Tridgell 2004-09-28 09:34:49 +00:00 committed by Gerald (Jerry) Carter
parent 0244414a58
commit 14a0e37582

View File

@ -70,7 +70,7 @@ static char *ldb_dn_key(struct ldb_context *ldb,
return ret; return ret;
} }
ldb_asprintf(ldb, &ret, "%s:%s:%s", LTDB_INDEX, attr, (char *)value->data); ldb_asprintf(ldb, &ret, "%s:%s:%.*s", LTDB_INDEX, attr, value->length, (char *)value->data);
return ret; return ret;
} }