Commit 3d9c500e authored by Thomas Guillem's avatar Thomas Guillem

dsm: fix invalid credential check

parent 1160b2df
......@@ -301,8 +301,7 @@ static bool smb_has_invalid_creds( access_t *p_access )
access_sys_t *p_sys = p_access->p_sys;
uint32_t i_nt_status = smb_session_get_nt_status( p_sys->p_session );
return i_nt_status == NT_STATUS_ACCESS_DENIED
|| i_nt_status == NT_STATUS_LOGON_FAILURE;
return i_nt_status & (NT_STATUS_ACCESS_DENIED | NT_STATUS_LOGON_FAILURE);
}
/* Performs login with existing credentials and ask the user for new ones on
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment