[vlc-commits] dsm: fix invalid credential check
Thomas Guillem
git at videolan.org
Fri Jul 15 11:37:30 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jul 15 10:20:21 2016 +0200| [3d9c500ed6813483322e3b9d0401877348186495] | committer: Thomas Guillem
dsm: fix invalid credential check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d9c500ed6813483322e3b9d0401877348186495
---
modules/access/dsm/access.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c
index 738c8b5..d3db35f 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -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
More information about the vlc-commits
mailing list