[vlc-devel] [3.0 BP 3/7] smb2: always print the encoded url in the dialog
Thomas Guillem
thomas at gllm.fr
Fri Mar 12 09:55:42 UTC 2021
(cherry picked from commit ebcfc500f5a6f1bd4c719013fe55e997ef09ac72)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
---
modules/access/smb2.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/modules/access/smb2.c b/modules/access/smb2.c
index ada493f44f..f8141f515c 100644
--- a/modules/access/smb2.c
+++ b/modules/access/smb2.c
@@ -645,7 +645,6 @@ Open(vlc_object_t *p_obj)
char *resolved_host = vlc_smb2_resolve(access, sys->encoded_url.psz_host,
sys->encoded_url.i_port);
- const char *host;
/* smb2_* functions need a decoded url. Re compose the url from the
* modified sys->encoded_url (with the resolved host). */
@@ -655,12 +654,10 @@ Open(vlc_object_t *p_obj)
vlc_url_t resolved_url = sys->encoded_url;
resolved_url.psz_host = resolved_host;
url = vlc_uri_compose(&resolved_url);
- host = resolved_host;
}
else
{
url = vlc_uri_compose(&sys->encoded_url);
- host = sys->encoded_url.psz_host;
}
if (!vlc_uri_decode(url))
{
@@ -685,7 +682,7 @@ Open(vlc_object_t *p_obj)
&& (!sys->error_status || VLC_SMB2_STATUS_DENIED(sys->error_status))
&& vlc_credential_get(&credential, access, "smb-user", "smb-pwd",
SMB_LOGIN_DIALOG_TITLE, SMB_LOGIN_DIALOG_TEXT,
- host))
+ sys->encoded_url.psz_host))
{
sys->error_status = 0;
ret = vlc_smb2_open_share(access, url, &credential);
--
2.30.0
More information about the vlc-devel
mailing list