[vlc-devel] [PATCH 3/3] dsm: don't try to log to previously saved smb2 servers
Thomas Guillem
thomas at gllm.fr
Fri Oct 18 15:52:40 CEST 2019
---
modules/access/dsm/access.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c
index 060004f9fa8..a5da057a5ea 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -387,6 +387,15 @@ static int login( stream_t *p_access )
SMB_LOGIN_DIALOG_TEXT, p_sys->netbios_name ) )
{
b_guest = false;
+
+ if( credential.psz_authtype
+ && strcmp(credential.psz_authtype, "2" ) == 0 )
+ {
+ msg_Dbg(p_access, "This server had already been logged via "
+ "SMB 2, canceling SMB 1");
+ goto error;
+ }
+
psz_login = credential.psz_username;
psz_password = credential.psz_password;
psz_domain = credential.psz_realm ? credential.psz_realm
--
2.20.1
More information about the vlc-devel
mailing list