summaryrefslogtreecommitdiff
path: root/source3/lib/debug.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-10-27 07:17:21 +0000
committerJeremy Allison <jra@samba.org>2001-10-27 07:17:21 +0000
commitb947ad3a491b6ad2c8aebd8604dee056ac874435 (patch)
tree8390509a8f31035e075aab7bdeeb946a3663b029 /source3/lib/debug.c
parentd04824639dbc2864d2c9ad901a4b26e97c442c82 (diff)
downloadsamba-b947ad3a491b6ad2c8aebd8604dee056ac874435.tar.gz
samba-b947ad3a491b6ad2c8aebd8604dee056ac874435.tar.bz2
samba-b947ad3a491b6ad2c8aebd8604dee056ac874435.zip
smbd/notify_hash.c: Merged Herb's fix.
lib/debug.c: Fix for potential null pointer access. Jeremy. (This used to be commit 5a4d22dd66ab782f6161aa5a4162c0e7f1d811fb)
Diffstat (limited to 'source3/lib/debug.c')
-rw-r--r--source3/lib/debug.c3
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);