[PATCH 3/5] tdb: reset tdb->fd to -1 in tdb_close()
Rusty Russell
rusty at rustcorp.com.au
Sun Oct 25 21:11:20 MDT 2009
On Thu, 22 Oct 2009 03:48:56 am Kirill Smelkov wrote:
> So that erroneous double tdb_close() calls do not try to close() same
> fd again. This is like SAFE_FREE() but for fd.
Hi Kirill,
These patches look good. This one of course doesn't allow multiple
tdb_close(), since it frees the tdb context anyway. But the extra paranoia
can't hurt.
Thanks,
Rusty.
More information about the samba-technical
mailing list