mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s3:smbd: pass smbXsrv_connection to remove_deferred_open_message_smb()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
d8cffad8e0
commit
b05ae37da6
@ -2205,7 +2205,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
|
||||
}
|
||||
|
||||
/* Ensure we don't reprocess this message. */
|
||||
remove_deferred_open_message_smb(req->sconn, req->mid);
|
||||
remove_deferred_open_message_smb(req->xconn, req->mid);
|
||||
|
||||
first_open_attempt = false;
|
||||
}
|
||||
|
@ -692,7 +692,7 @@ static void smbd_deferred_open_timer(struct tevent_context *ev,
|
||||
/* If it's still there and was processed, remove it. */
|
||||
msg = get_deferred_open_message_smb(sconn, mid);
|
||||
if (msg && msg->processed) {
|
||||
remove_deferred_open_message_smb(sconn, mid);
|
||||
remove_deferred_open_message_smb(xconn, mid);
|
||||
}
|
||||
}
|
||||
|
||||
@ -761,9 +761,10 @@ static bool push_queued_message(struct smb_request *req,
|
||||
Function to delete a sharing violation open message by mid.
|
||||
****************************************************************************/
|
||||
|
||||
void remove_deferred_open_message_smb(struct smbd_server_connection *sconn,
|
||||
void remove_deferred_open_message_smb(struct smbXsrv_connection *xconn,
|
||||
uint64_t mid)
|
||||
{
|
||||
struct smbd_server_connection *sconn = xconn->client->sconn;
|
||||
struct pending_message_list *pml;
|
||||
|
||||
if (sconn->using_smb2) {
|
||||
|
@ -749,7 +749,7 @@ int srv_set_message(char *buf,
|
||||
int num_words,
|
||||
int num_bytes,
|
||||
bool zero);
|
||||
void remove_deferred_open_message_smb(struct smbd_server_connection *sconn,
|
||||
void remove_deferred_open_message_smb(struct smbXsrv_connection *xconn,
|
||||
uint64_t mid);
|
||||
bool schedule_deferred_open_message_smb(struct smbd_server_connection *sconn,
|
||||
uint64_t mid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user