summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-28 09:34:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:25 -0500
commit14a0e37582c9aea69d92cf2ad449dda0bdf3bce0 (patch)
treeebbee091d1edbb06c6ace41e883ea73ea226ec81 /source4/lib
parent0244414a58691c3e0081777fb1372d3ed068ac8b (diff)
downloadsamba-14a0e37582c9aea69d92cf2ad449dda0bdf3bce0.tar.gz
samba-14a0e37582c9aea69d92cf2ad449dda0bdf3bce0.tar.bz2
samba-14a0e37582c9aea69d92cf2ad449dda0bdf3bce0.zip
r2713: better handling of binary values in index key creation
(This used to be commit b0c92616fb69d8139f66dc8144cfcc88ea6825dc)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c
index e23ae1e7dd..cfd097e361 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_index.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_index.c
@@ -70,7 +70,7 @@ static char *ldb_dn_key(struct ldb_context *ldb,
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;
}