smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context...
[samba.git] / source3 / smbd / smb2_server.c
index 46b747cabffa96f1133a559fb03a0b16eec1ea44..0c1ac32389180709535911527abc9288458c8a51 100644 (file)
@@ -2614,8 +2614,10 @@ NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req)
                SMB_ASSERT(call->fileid_ofs == 0);
                /* This call needs to be run as root */
                change_to_root_user();
+               req->ev_ctx = req->sconn->root_ev_ctx;
        } else {
                SMB_ASSERT(call->need_tcon);
+               req->ev_ctx = req->tcon->compat->user_ev_ctx;
        }
 
 #define _INBYTES(_r) \