make sure no error is left in the queue that is intentionally ignored
This commit is contained in:
parent
58c84c1230
commit
46a539a2c9
1 changed files with 3 additions and 1 deletions
|
@ -241,6 +241,8 @@ static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey)
|
|||
return(0);
|
||||
}
|
||||
|
||||
ERR_clear_error(); /* make sure no error from X509_check_private_key()
|
||||
* is left if we have chosen to ignore it */
|
||||
if (c->pkeys[i].privatekey != NULL)
|
||||
EVP_PKEY_free(c->pkeys[i].privatekey);
|
||||
CRYPTO_add(&pkey->references,1,CRYPTO_LOCK_EVP_PKEY);
|
||||
|
|
Loading…
Reference in a new issue