From ad847918cd30452604ca93e8ef884b54db497dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20B=C3=B6ck?= Date: Wed, 19 Apr 2017 14:00:21 +0200 Subject: [PATCH] cleanupdb: Fix a memory read error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugzilla.samba.org/show_bug.cgi?id=12748 Signed-off-by: Hanno Böck Reviewed-by: Volker Lendecke Reviewed-by: Jeremy Allison Reviewed-by: Ralph Boehme (cherry picked from commit fd98a7b6a0053b62802e29fb729e219dc08eef6b) --- source3/lib/cleanupdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/cleanupdb.c b/source3/lib/cleanupdb.c index 8832abe27d6..7bf7c7e7080 100644 --- a/source3/lib/cleanupdb.c +++ b/source3/lib/cleanupdb.c @@ -61,7 +61,7 @@ bool cleanupdb_store_child(const pid_t pid, const bool unclean) struct cleanup_key key = { .pid = pid }; struct cleanup_rec rec = { .pid = pid, .unclean = unclean }; TDB_DATA tdbkey = { .dptr = (uint8_t *)&key, .dsize = sizeof(key) }; - TDB_DATA tdbdata = { .dptr = (uint8_t *)&key, .dsize = sizeof(rec) }; + TDB_DATA tdbdata = { .dptr = (uint8_t *)&rec, .dsize = sizeof(rec) }; int result; db = cleanup_db(); -- 2.12.2.816.g2cccc81164-goog