summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb/ldb_search.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-05-08 03:44:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:48 -0500
commitd2c7b5cd338d41f9b47113ec21b36a12fe10c3fc (patch)
tree13d91caef1d9ccb99b2c482341e5b659c222b066 /source4/lib/ldb/ldb_tdb/ldb_search.c
parent810831434a03b68064476124828e607bd367d98d (diff)
downloadsamba-d2c7b5cd338d41f9b47113ec21b36a12fe10c3fc.tar.gz
samba-d2c7b5cd338d41f9b47113ec21b36a12fe10c3fc.tar.bz2
samba-d2c7b5cd338d41f9b47113ec21b36a12fe10c3fc.zip
r583: fixed two bugs in the handling of index entry deletion
(This used to be commit 7b5f3370e6c078bf506ac3eb24fb330d4aee7688)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_search.c')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_search.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_search.c b/source4/lib/ldb/ldb_tdb/ldb_search.c
index 60eaf3117c..e2c83202e9 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_search.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_search.c
@@ -257,6 +257,8 @@ int ltdb_search_dn1(struct ldb_context *ldb, const char *dn, struct ldb_message
int ret;
TDB_DATA tdb_key, tdb_data, tdb_data2;
+ memset(msg, 0, sizeof(*msg));
+
/* form the key */
tdb_key = ltdb_key(ldb, dn);
if (!tdb_key.dptr) {