Commit 5a13c1fe authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

sftp: do not close(-1)

parent f2466501
...@@ -331,7 +331,8 @@ error: ...@@ -331,7 +331,8 @@ error:
free( psz_username ); free( psz_username );
free( psz_remote_home ); free( psz_remote_home );
vlc_UrlClean( &url ); vlc_UrlClean( &url );
net_Close( p_sys->i_socket ); if( p_sys->i_socket >= 0 )
net_Close( p_sys->i_socket );
free( p_sys ); free( p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
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