From a9af5974b5e5fa1ab662bd0d6c5029c5ff4ac5d6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 24 Sep 2012 12:36:52 -0700 Subject: [PATCH] s3:smbd: release the share mode lock before calling exit_server() (bug #9191) metze Signed-off-by: Jeremy Allison --- source3/smbd/open.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 843bb2b..ed9f049 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1077,6 +1077,7 @@ static void defer_open(struct share_mode_lock *lck, if (procid_is_me(&e->pid) && (e->op_mid == req->mid)) { DEBUG(0, ("Trying to defer an already deferred " "request: mid=%d, exiting\n", req->mid)); + TALLOC_FREE(lck); exit_server("attempt to defer a deferred request"); } } @@ -1091,6 +1092,7 @@ static void defer_open(struct share_mode_lock *lck, if (!push_deferred_smb_message(req, request_time, timeout, (char *)state, sizeof(*state))) { + TALLOC_FREE(lck); exit_server("push_deferred_smb_message failed"); } add_deferred_open(lck, req->mid, request_time, state->id); -- 1.7.7.3