Commit d4ed9e11 authored by Antoine Cellerier's avatar Antoine Cellerier

Fix error in gpg signature verification function. Gcrypt is responsible for...

Fix error in gpg signature verification function. Gcrypt is responsible for freeing the value returned by gcry_md_read, so we shouldn't free it ourselves but use gcry_md_close instead.
parent e9fffd88
......@@ -1053,17 +1053,17 @@ static vlc_bool_t GetUpdateFile( update_t *p_update )
!= VLC_SUCCESS )
{
msg_Err( p_update->p_libvlc, "BAD SIGNATURE for status file" );
free( p_hash );
goto error;
}
else
{
msg_Info( p_update->p_libvlc, "Status file authenticated" );
free( p_hash );
gcry_md_close( hd );
return VLC_TRUE;
}
error:
gcry_md_close( hd );
if( p_stream )
stream_Delete( p_stream );
free( psz_version_line );
......
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