ref: 0aa362efa587ce310ec81fa79bc0442b4eaceb5e
parent: b3ef727c420cdd6ddb54c57f8c02b5871c3b36db
author: Kirill Belokurov <kirill.belokurov@gmail.com>
date: Sat Jul 12 08:19:57 EDT 2008
* 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.
--- a/src/css.c
+++ b/src/css.c
@@ -325,6 +325,7 @@
"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;
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -377,6 +377,10 @@
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 )