summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-17 12:05:42 +0100
committerKarolin Seeger <kseeger@samba.org>2014-03-10 16:17:01 +0100
commit540cfe1fa6c6ea0590375fca83b4b7716346349e (patch)
tree5c67022cb160eb33840374444eaa37b9bcc1b67f /source3/smbd
parent73186325be9c69e51d79f65e8682ac85e43dd9e6 (diff)
downloadsamba-540cfe1fa6c6ea0590375fca83b4b7716346349e.tar.gz
s3:smbd: simplify exit_server_common()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit 58c71bee40bb91868fc69d8f7fa640db0e33efae)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server_exit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/smbd/server_exit.c b/source3/smbd/server_exit.c
index dfa2b1dacb..f99b9a42ad 100644
--- a/source3/smbd/server_exit.c
+++ b/source3/smbd/server_exit.c
@@ -99,13 +99,11 @@ static void exit_server_common(enum server_exit_reason how,
change_to_root_user();
- if (sconn && sconn->smb1.negprot.auth_context) {
- TALLOC_FREE(sconn->smb1.negprot.auth_context);
- }
-
if (sconn) {
NTSTATUS status;
+ TALLOC_FREE(sconn->smb1.negprot.auth_context);
+
if (lp_log_writeable_files_on_exit()) {
bool found = false;
files_forall(sconn, log_writeable_file_fn, &found);