Fix a memory leak
The initializations are already done a few lines below pkcs15-lib.c:1938:11: warning: Value stored to 'ctx' during its initialization is never read BN_CTX *ctx = BN_CTX_new(); ^ ~~~~~~~~~~~~ pkcs15-lib.c:1937:11: warning: Value stored to 'aux' during its initialization is never read BIGNUM *aux = BN_new(); ^ ~~~~~~~~ git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5140 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
19343c77e2
commit
fb9e21d823
|
@ -1934,8 +1934,8 @@ prkey_fixup_rsa(struct sc_pkcs15_card *p15card, struct sc_pkcs15_prkey_rsa *key)
|
|||
if (!key->dmp1.len || !key->dmq1.len || !key->iqmp.len) {
|
||||
static u8 dmp1[256], dmq1[256], iqmp[256];
|
||||
RSA *rsa;
|
||||
BIGNUM *aux = BN_new();
|
||||
BN_CTX *ctx = BN_CTX_new();
|
||||
BIGNUM *aux;
|
||||
BN_CTX *ctx;
|
||||
|
||||
rsa = RSA_new();
|
||||
rsa->n = BN_bin2bn(key->modulus.data, key->modulus.len, NULL);
|
||||
|
|
Loading…
Reference in New Issue