mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s3: Remove sconn arg from smbd_notify_cancel_by_smbreq
This commit is contained in:
parent
546a264e0e
commit
3087986e76
@ -237,8 +237,7 @@ NTSTATUS smbd_check_open_rights(struct connection_struct *conn,
|
||||
uint32_t access_mask,
|
||||
uint32_t *access_granted);
|
||||
|
||||
void smbd_notify_cancel_by_smbreq(struct smbd_server_connection *sconn,
|
||||
const struct smb_request *smbreq);
|
||||
void smbd_notify_cancel_by_smbreq(const struct smb_request *smbreq);
|
||||
|
||||
void smbd_server_connection_terminate_ex(struct smbd_server_connection *sconn,
|
||||
const char *reason,
|
||||
|
@ -318,9 +318,9 @@ void remove_pending_change_notify_requests_by_mid(uint64_t mid)
|
||||
change_notify_remove_request(map->req);
|
||||
}
|
||||
|
||||
void smbd_notify_cancel_by_smbreq(struct smbd_server_connection *sconn,
|
||||
const struct smb_request *smbreq)
|
||||
void smbd_notify_cancel_by_smbreq(const struct smb_request *smbreq)
|
||||
{
|
||||
struct smbd_server_connection *sconn = smbreq->sconn;
|
||||
struct notify_mid_map *map;
|
||||
|
||||
for (map = sconn->smb1.notify_mid_maps; map; map = map->next) {
|
||||
|
@ -380,8 +380,7 @@ static bool smbd_smb2_notify_cancel(struct tevent_req *req)
|
||||
struct smbd_smb2_notify_state *state = tevent_req_data(req,
|
||||
struct smbd_smb2_notify_state);
|
||||
|
||||
smbd_notify_cancel_by_smbreq(state->smb2req->sconn,
|
||||
state->smbreq);
|
||||
smbd_notify_cancel_by_smbreq(state->smbreq);
|
||||
|
||||
state->smb2req->cancelled = true;
|
||||
tevent_req_done(req);
|
||||
|
Loading…
x
Reference in New Issue
Block a user