mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Ensure we call auth_ntlmssp_end in invalidate_vuid and invalidate_partical_vuid.
Jeremy.
This commit is contained in:
parent
eb52363673
commit
3f6c025526
@ -91,11 +91,15 @@ void invalidate_vuid(uint16 vuid)
|
||||
|
||||
if (vuser == NULL)
|
||||
return;
|
||||
|
||||
|
||||
SAFE_FREE(vuser->homedir);
|
||||
SAFE_FREE(vuser->unix_homedir);
|
||||
SAFE_FREE(vuser->logon_script);
|
||||
|
||||
|
||||
if (vuser->auth_ntlmssp_state) {
|
||||
auth_ntlmssp_end(&vuser->auth_ntlmssp_state);
|
||||
}
|
||||
|
||||
session_yield(vuser);
|
||||
SAFE_FREE(vuser->session_keystr);
|
||||
|
||||
@ -123,6 +127,10 @@ void invalidate_intermediate_vuid(uint16 vuid)
|
||||
if (vuser == NULL)
|
||||
return;
|
||||
|
||||
if (vuser->auth_ntlmssp_state) {
|
||||
auth_ntlmssp_end(&vuser->auth_ntlmssp_state);
|
||||
}
|
||||
|
||||
DLIST_REMOVE(validated_users, vuser);
|
||||
|
||||
SAFE_FREE(vuser);
|
||||
|
Loading…
Reference in New Issue
Block a user