vlc | branch: master | Francois Cartegnie <[email protected]> | Mon Jun 4 14:21:28 2018 +0200| [fd635ed084024b626e0f136f701e000f4d3cdc1a] | committer: Francois Cartegnie
access: sftp: notify known_hosts read failure > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd635ed084024b626e0f136f701e000f4d3cdc1a --- modules/access/sftp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/access/sftp.c b/modules/access/sftp.c index a86d44451c..e26d2419d8 100644 --- a/modules/access/sftp.c +++ b/modules/access/sftp.c @@ -288,8 +288,9 @@ static int Open( vlc_object_t* p_this ) char *psz_knownhosts_file; if( asprintf( &psz_knownhosts_file, "%s/.ssh/known_hosts", psz_home ) != -1 ) { - libssh2_knownhost_readfile( ssh_knownhosts, psz_knownhosts_file, - LIBSSH2_KNOWNHOST_FILE_OPENSSH ); + if( libssh2_knownhost_readfile( ssh_knownhosts, psz_knownhosts_file, + LIBSSH2_KNOWNHOST_FILE_OPENSSH ) < 0 ) + msg_Err( p_access, "Failure reading known_hosts '%s'", psz_knownhosts_file ); free( psz_knownhosts_file ); } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
