vlc | branch: master | Ion Agorria <i...@agorria.com> | Thu Oct 26 10:34:38 2017 +0200| [b4247bb56fd606506c85a683a660746967c810d1] | committer: Jean-Baptiste Kempf
sftp: ssh authentication list can return NULL if it fails Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b4247bb56fd606506c85a683a660746967c810d1 --- modules/access/sftp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/access/sftp.c b/modules/access/sftp.c index c119a223f8..41ae894da3 100644 --- a/modules/access/sftp.c +++ b/modules/access/sftp.c @@ -313,6 +313,10 @@ static int Open( vlc_object_t* p_this ) continue; psz_userauthlist = libssh2_userauth_list( p_sys->ssh_session, credential.psz_username, strlen( credential.psz_username ) ); + if (!psz_userauthlist) { + msg_Err( p_access, "Host authentication list failed"); + goto error; + } /* TODO: Follow PreferredAuthentications in ssh_config */ _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits