[vlc-commits] sftp: use TCP, not just any protocol

Rémi Denis-Courmont git at videolan.org
Sun Mar 12 18:29:32 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 12 19:26:42 2017 +0200| [f1e6105550661f6153c0540e41042aa8d210e524] | committer: Rémi Denis-Courmont

sftp: use TCP, not just any protocol

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f1e6105550661f6153c0540e41042aa8d210e524
---

 modules/access/sftp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index 6591d7f..1abaf3a 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -224,7 +224,7 @@ static int Open( vlc_object_t* p_this )
 
 
     /* Connect to the server using a regular socket */
-    p_sys->i_socket = net_Connect( p_access, url.psz_host, i_port, SOCK_STREAM, 0 );
+    p_sys->i_socket = net_ConnectTCP( p_access, url.psz_host, i_port );
     if( p_sys->i_socket < 0 )
     {
         msg_Err( p_access, "Impossible to open the connection to %s:%i", url.psz_host, i_port );



More information about the vlc-commits mailing list