1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:smbd: release the share mode lock before calling exit_server() (bug #9191)

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Sep 21 22:36:57 CEST 2012 on sn-devel-104
This commit is contained in:
Stefan Metzmacher 2012-09-21 20:36:16 +02:00
parent bfafb0ce83
commit 7a493fd867

View File

@ -1464,6 +1464,7 @@ static void defer_open(struct share_mode_lock *lck,
DEBUG(0, ("Trying to defer an already deferred "
"request: mid=%llu, exiting\n",
(unsigned long long)req->mid));
TALLOC_FREE(lck);
exit_server("attempt to defer a deferred request");
}
}
@ -1479,6 +1480,7 @@ static void defer_open(struct share_mode_lock *lck,
if (!push_deferred_open_message_smb(req, request_time, timeout,
state->id, (char *)state, sizeof(*state))) {
TALLOC_FREE(lck);
exit_server("push_deferred_open_message_smb failed");
}
if (lck) {