Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event...
[samba.git] / source3 / smbd / process.c
index e730676ef3615b38f51b2deab50216207e68100f..d2553049cd2568e24e78e39f43c374d95a0825e6 100644 (file)
@@ -1506,8 +1506,6 @@ static connection_struct *switch_message(uint8_t type, struct smb_request *req)
 
        errno = 0;
 
-       req->ev_ctx = NULL;
-
        if (!xconn->smb1.negprot.done) {
                switch (type) {
                        /*
@@ -1642,8 +1640,6 @@ static connection_struct *switch_message(uint8_t type, struct smb_request *req)
                        reply_nterror(req, NT_STATUS_ACCESS_DENIED);
                        return conn;
                }
-
-               req->ev_ctx = conn->user_ev_ctx;
        } else if (flags & AS_GUEST) {
                /*
                 * Does this protocol need to be run as guest? (Only archane
@@ -1653,13 +1649,9 @@ static connection_struct *switch_message(uint8_t type, struct smb_request *req)
                        reply_nterror(req, NT_STATUS_ACCESS_DENIED);
                        return conn;
                }
-
-               req->ev_ctx = req->sconn->guest_ev_ctx;
        } else {
                /* This call needs to be run as root */
                change_to_root_user();
-
-               req->ev_ctx = req->sconn->root_ev_ctx;
        }
 
        /* load service specific parameters */