summaryrefslogtreecommitdiffhomepage
path: root/src/log.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-01-10 19:24:23 +0100
committerMichael Adam <obnox@samba.org>2010-01-10 19:24:23 +0100
commit1dd1c2796aef14ece4137ae907f1a3da72e2c6c9 (patch)
tree9ec713d5c31ce964f2300aae820a6b32fa5767a7 /src/log.c
parent65ef313cc4601b5ad84d1da1800ff38bf8f046a9 (diff)
log: shortcut return in shutdown_logging() if logging_initialized == false
This does for instance happen at startup when logging has not yet been set up. Michael
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index b78e568..39a4bac 100644
--- a/src/log.c
+++ b/src/log.c
@@ -284,6 +284,10 @@ done:
*/
void shutdown_logging (void)
{
+ if (!logging_initialized) {
+ return;
+ }
+
if (config.logf_name) {
close_log_file ();
} else if (config.syslog) {