smbd: use session->global->session_wire_id instead of session->compat->vuid
[gd/samba-autobuild/.git] / source3 / smbd / password.c
index 284a4aba778522912be1d5ce1bb972b72b3dc1ed..41829e5793aca252f14dfa17beea6cfd194b33fe 100644 (file)
@@ -43,7 +43,7 @@ static struct user_struct *get_valid_user_struct_internal(
 
        usp=sconn->users;
        for (;usp;usp=usp->next,count++) {
-               if (vuid == usp->vuid) {
+               if (vuid == usp->session->global->session_wire_id) {
                        switch (server_allocated) {
                                case SERVER_ALLOCATED_REQUIRED_YES:
                                        if (usp->session_info == NULL) {