From c059f0ae729a47883362a1ba01b530b3d743bc45 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 22 Mar 2018 10:54:41 +0100 Subject: smbd: use req->xconn->client->raw_ev_ctx for schedule_deferred_open_message_smb() process_smb() will redo the impersonation anyway. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- source3/smbd/process.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source3/smbd/process.c') diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 53365b5f034..99693ed1315 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -822,7 +822,14 @@ bool schedule_deferred_open_message_smb(struct smbXsrv_connection *xconn, "scheduling mid %llu\n", (unsigned long long)mid )); - te = tevent_add_timer(pml->sconn->ev_ctx, + /* + * smbd_deferred_open_timer() calls + * process_smb() to redispatch the request + * including the required impersonation. + * + * So we can just use the raw tevent_context. + */ + te = tevent_add_timer(xconn->client->raw_ev_ctx, pml, timeval_zero(), smbd_deferred_open_timer, -- cgit v1.2.1