s3: vfs: add user_vfs_evg to connection_struct
[nivanova/samba-autobuild/.git] / source3 / smbd / conn.c
index cfff6404608f395414490e412d15d07139ba5bee..d8dc1c27d427a27fccc1c6c45331cf581cbc2757 100644 (file)
@@ -95,10 +95,12 @@ static void conn_clear_vuid_cache(connection_struct *conn, uint64_t vuid)
                if (ent->vuid == vuid) {
                        ent->vuid = UID_FIELD_INVALID;
 
-                       if (conn->user_ev_ctx == ent->user_ev_ctx) {
-                               conn->user_ev_ctx = NULL;
+                       conn->user_ev_ctx = NULL;
+
+                       if (conn->user_vfs_evg == ent->user_vfs_evg) {
+                               conn->user_vfs_evg = NULL;
                        }
-                       TALLOC_FREE(ent->user_ev_ctx);
+                       TALLOC_FREE(ent->user_vfs_evg);
 
                        /*
                         * We need to keep conn->session_info around