fixed 333715 Dereference after null check

This commit is contained in:
Frank Morgner 2019-03-06 00:17:55 +01:00
parent e876cf62eb
commit 9abe44f03c

View File

@ -346,7 +346,7 @@ static int get_key(unsigned int usage, sc_pkcs15_object_t **result)
* a crypto operation. Card drivers can test for SC_AC_CONTEXT_SPECIFIC
* to do any special handling.
*/
if (key->user_consent && pin && pin->data) {
if (key->user_consent) {
int auth_meth_saved;
struct sc_pkcs15_auth_info *pinfo = (struct sc_pkcs15_auth_info *) pin->data;