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. */
|
/* 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;
|
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. */
|
/* If it's still there and was processed, remove it. */
|
||||||
msg = get_deferred_open_message_smb(sconn, mid);
|
msg = get_deferred_open_message_smb(sconn, mid);
|
||||||
if (msg && msg->processed) {
|
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.
|
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)
|
uint64_t mid)
|
||||||
{
|
{
|
||||||
|
struct smbd_server_connection *sconn = xconn->client->sconn;
|
||||||
struct pending_message_list *pml;
|
struct pending_message_list *pml;
|
||||||
|
|
||||||
if (sconn->using_smb2) {
|
if (sconn->using_smb2) {
|
||||||
|
@ -749,7 +749,7 @@ int srv_set_message(char *buf,
|
|||||||
int num_words,
|
int num_words,
|
||||||
int num_bytes,
|
int num_bytes,
|
||||||
bool zero);
|
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);
|
uint64_t mid);
|
||||||
bool schedule_deferred_open_message_smb(struct smbd_server_connection *sconn,
|
bool schedule_deferred_open_message_smb(struct smbd_server_connection *sconn,
|
||||||
uint64_t mid);
|
uint64_t mid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user