Commit 0aa362ef authored by Kirill Belokurov's avatar Kirill Belokurov Committed by Christophe Massiot
Browse files

* src/libdvdcss.c: initialize p_disc_key in the case when DVD is encrypted

   but no ioctl is available ;
 * src/css.c: initialize p_disc_key in the case when key decryption fails.
parent b3ef727c
......@@ -325,6 +325,7 @@ int _dvdcss_disckey( dvdcss_t dvdcss )
"cracking title keys instead" );
/* Fallback, but not to DISC as the disc key might be faulty */
memset( p_disc_key, 0, KEY_SIZE );
dvdcss->i_method = DVDCSS_METHOD_TITLE;
break;
......
......@@ -377,6 +377,10 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target )
return NULL;
}
}
else
{
memset( dvdcss->css.p_disc_key, 0, KEY_SIZE );
}
/* If the cache is enabled, write the cache directory tag */
if( psz_cache )
......
Supports Markdown
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