diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tdb/common/tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/tdb.c b/lib/tdb/common/tdb.c index c0f934ab83..fc1f5608fa 100644 --- a/lib/tdb/common/tdb.c +++ b/lib/tdb/common/tdb.c @@ -1003,7 +1003,7 @@ bool tdb_write_all(int fd, const void *buf, size_t count) #ifdef TDB_TRACE static void tdb_trace_write(struct tdb_context *tdb, const char *str) { - if (!tdb_write_alltdb->tracefd, str, strlen(str)) { + if (!tdb_write_all(tdb->tracefd, str, strlen(str))) { close(tdb->tracefd); tdb->tracefd = -1; } |