Commit 8594af8c authored by Reimar Döffinger's avatar Reimar Döffinger
Browse files

Ensure dvdcss->css.p_disc_key is always initialized

even if _dvdcss_disckey fails.
parent 0833399b
......@@ -389,6 +389,7 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target )
}
}
memset( dvdcss->css.p_disc_key, 0, KEY_SIZE );
/* If disc is CSS protected and the ioctls work, authenticate the drive */
if( dvdcss->b_scrambled && dvdcss->b_ioctls )
{
......@@ -399,10 +400,6 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target )
print_debug( dvdcss, "could not get disc key" );
}
}
else
{
memset( dvdcss->css.p_disc_key, 0, KEY_SIZE );
}
/* If the cache is enabled, write the cache directory tag */
if( psz_cache )
......
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