tdb: Fix a tdb corruption
commit5f7b481349796cc0e90563ed01353809b403e429
authorVolker Lendecke <vl@samba.org>
Sun, 16 Mar 2014 20:08:32 +0000 (16 20:08 +0000)
committerMichael Adam <obnox@samba.org>
Tue, 18 Mar 2014 12:42:10 +0000 (18 13:42 +0100)
tree7a1241925236eaeff0780474c596fd706c8275e5
parent9c9df40220234cba973e84b4985d90da1334a1d1
tdb: Fix a tdb corruption

tdb_purge_dead can change the next pointer of "rec" if we purge the record
right behind the current record to be deleted. Just overwrite the magic,
not the whole record with stale data.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/common/tdb.c