TODO destructors ... 2step:smb2 use smbXsrv_tcon: make use of smbXsrv_tcon smb2 remov...
[metze/samba/wip.git] / source3 / smbd / smb2_find.c
index 9c0d18b278fa7033e6ba33cf901742f85dab729b..3091f3351c52860416f43c2a01cdf80c1c7087b0 100644 (file)
@@ -213,7 +213,7 @@ static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx,
        struct tevent_req *req;
        struct smbd_smb2_find_state *state;
        struct smb_request *smbreq;
-       connection_struct *conn = smb2req->tcon->compat_conn;
+       connection_struct *conn = smb2req->tcon->compat;
        files_struct *fsp;
        NTSTATUS status;
        NTSTATUS empty_status;
@@ -254,7 +254,7 @@ static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx,
                tevent_req_nterror(req, NT_STATUS_FILE_CLOSED);
                return tevent_req_post(req, ev);
        }
-       if (smb2req->session->vuid != fsp->vuid) {
+       if (smb2req->session->compat->vuid != fsp->vuid) {
                tevent_req_nterror(req, NT_STATUS_FILE_CLOSED);
                return tevent_req_post(req, ev);
        }