diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c index 6524d58ecb..92b80c8736 100644 --- a/source3/lib/debug.c +++ b/source3/lib/debug.c @@ -365,7 +365,8 @@ BOOL reopen_logs( void ) log_overflow = True; DEBUG(0, ("Unable to open new log file %s: %s\n", debugf, strerror(errno))); log_overflow = False; - x_fflush(dbf); + if (dbf) + x_fflush(dbf); ret = False; } else { x_setbuf(new_dbf, NULL); |