summaryrefslogtreecommitdiffstats
path: root/source/tdb/tdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tdb/tdb.c')
-rw-r--r--source/tdb/tdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/tdb/tdb.c b/source/tdb/tdb.c
index ac1901649d3..881d9b6ee5d 100644
--- a/source/tdb/tdb.c
+++ b/source/tdb/tdb.c
@@ -1474,6 +1474,7 @@ TDB_CONTEXT *tdb_open_ex(char *name, int hash_size, int tdb_flags,
"failed to truncate %s: %s\n",
name, strerror(errno)));
goto fail; /* errno set by ftruncate */
+ }
}
if (read(tdb->fd, &tdb->header, sizeof(tdb->header)) != sizeof(tdb->header)