removed unused check
This commit is contained in:
parent
259b7ec41c
commit
ed0d829eab
|
@ -1377,7 +1377,7 @@ static int mcrd_compute_signature(sc_card_t * card,
|
|||
int r;
|
||||
sc_apdu_t apdu;
|
||||
|
||||
if (card == NULL || data == NULL || out == NULL)
|
||||
if (data == NULL || out == NULL)
|
||||
return SC_ERROR_INVALID_ARGUMENTS;
|
||||
env = &priv->sec_env;
|
||||
|
||||
|
|
|
@ -823,7 +823,7 @@ static int read_public_key(void)
|
|||
out:
|
||||
if (cert)
|
||||
sc_pkcs15_free_certificate(cert);
|
||||
else if (pubkey)
|
||||
else
|
||||
sc_pkcs15_free_pubkey(pubkey);
|
||||
|
||||
return r;
|
||||
|
@ -1196,7 +1196,7 @@ static int read_ssh_key(void)
|
|||
fclose(outf);
|
||||
if (cert)
|
||||
sc_pkcs15_free_certificate(cert);
|
||||
else if (pubkey)
|
||||
else
|
||||
sc_pkcs15_free_pubkey(pubkey);
|
||||
return 0;
|
||||
fail:
|
||||
|
@ -1206,7 +1206,7 @@ fail2:
|
|||
fclose(outf);
|
||||
if (cert)
|
||||
sc_pkcs15_free_certificate(cert);
|
||||
else if (pubkey)
|
||||
else
|
||||
sc_pkcs15_free_pubkey(pubkey);
|
||||
return SC_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue