mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
cleanupdb: Fix a memory read error
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12748 Signed-off-by: Hanno Böck <hanno@hboeck.de> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
426e407c53
commit
fd98a7b6a0
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user