summaryrefslogtreecommitdiff
path: root/source3/smbd/close.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-02 16:58:46 +0200
committerVolker Lendecke <vl@samba.org>2011-08-02 19:18:08 +0200
commit502fdae7f134bda53e6c95e3a336e7b2fcda77f2 (patch)
tree3f44be39fa52a397a74b643c1c4210b1236cc51b /source3/smbd/close.c
parent04253dfd9fb024bb8c227b0d9ccb81efa208fabe (diff)
downloadsamba-502fdae7f134bda53e6c95e3a336e7b2fcda77f2.tar.gz
samba-502fdae7f134bda53e6c95e3a336e7b2fcda77f2.tar.bz2
samba-502fdae7f134bda53e6c95e3a336e7b2fcda77f2.zip
s3: Pass sconn explicitly to schedule_deferred_open_message_smb
Diffstat (limited to 'source3/smbd/close.c')
-rw-r--r--source3/smbd/close.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index b31daf366f..a1b6fd8f25 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -176,13 +176,18 @@ static void notify_deferred_opens(struct messaging_context *msg_ctx,
}
if (procid_is_me(&e->pid)) {
+ struct smbd_server_connection *sconn;
/*
* We need to notify ourself to retry the open. Do
* this by finding the queued SMB record, moving it to
* the head of the queue and changing the wait time to
* zero.
*/
- schedule_deferred_open_message_smb(e->op_mid);
+ sconn = msg_ctx_to_sconn(msg_ctx);
+ if (sconn != NULL) {
+ schedule_deferred_open_message_smb(
+ sconn, e->op_mid);
+ }
} else {
char msg[MSG_SMB_SHARE_MODE_ENTRY_SIZE];