int pfd)
{
int ret = -1;
- int tfd = -1;
int num_entries = 0;
TDB_CONTEXT *tdb = NULL;
struct tdb_validation_status v_status;
goto out;
}
- tfd = tdb_fd(tdb);
-
/* Check the cache freelist is good. */
if (tdb_validate_freelist(tdb, &num_entries) == -1) {
DEBUG(0,("tdb_validate_child: bad freelist in cache %s\n",
out:
if (tdb) {
- if (ret == 0) {
- tdb_close(tdb);
- }
- else if (tfd != -1) {
- close(tfd);
- }
+ tdb_close(tdb);
}
DEBUG(10, ("tdb_validate_child: writing status to pipe\n"));