summaryrefslogtreecommitdiffstats
path: root/source3/smbd/server_exit.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-27 03:53:00 +0200
committerVolker Lendecke <vl@samba.org>2010-09-28 07:36:16 +0200
commitfb8686962a542c70a2104247a77b48cacd8a9663 (patch)
tree8bb6351185144774a9f4c8c0b1e76c0c1c15ec80 /source3/smbd/server_exit.c
parent9fc9ff9bfac604007440776d06b71eba5b5005e5 (diff)
downloadsamba-fb8686962a542c70a2104247a77b48cacd8a9663.tar.gz
samba-fb8686962a542c70a2104247a77b48cacd8a9663.tar.xz
samba-fb8686962a542c70a2104247a77b48cacd8a9663.zip
s3: Remove smbd_server_conn from files_forall
Diffstat (limited to 'source3/smbd/server_exit.c')
-rw-r--r--source3/smbd/server_exit.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/smbd/server_exit.c b/source3/smbd/server_exit.c
index 1a330994b8..9f2d6b3e9a 100644
--- a/source3/smbd/server_exit.c
+++ b/source3/smbd/server_exit.c
@@ -78,12 +78,11 @@ static void exit_server_common(enum server_exit_reason how,
TALLOC_FREE(sconn->smb1.negprot.auth_context);
}
- if (lp_log_writeable_files_on_exit()) {
- bool found = false;
- files_forall(log_writeable_file_fn, &found);
- }
-
if (sconn) {
+ if (lp_log_writeable_files_on_exit()) {
+ bool found = false;
+ files_forall(sconn, log_writeable_file_fn, &found);
+ }
had_open_conn = conn_close_all(sconn);
invalidate_all_vuids(sconn);
}