Commit 1188fc4e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

sftp: invalid free()

parent 1c61bc75
......@@ -172,9 +172,11 @@ static int Open( vlc_object_t* p_this )
char *psz_home = config_GetUserDir( VLC_HOME_DIR );
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 );
free( psz_knownhosts_file );
free( psz_knownhosts_file );
}
free( psz_home );
const char *fingerprint = libssh2_session_hostkey( p_sys->ssh_session, &i_len, &i_type );
......
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