1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

ctdb-tools: Free record if it does not contain valid data

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12121

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(cherry picked from commit 814002c9a10227fd6cc13fdc974d2312201d7c19)
This commit is contained in:
Amitay Isaacs 2016-08-05 12:34:13 +10:00 committed by Stefan Metzmacher
parent c1dfac0a27
commit e7c238397f

View File

@ -2038,6 +2038,7 @@ static void traverse_handler(uint64_t srvid, TDB_DATA data, void *private_data)
}
if (rec->data.dsize == 0) {
talloc_free(rec);
return;
}