fixed 333715 Dereference after null check
This commit is contained in:
parent
e876cf62eb
commit
9abe44f03c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user