Clear OpenSSL errors on EC_KEY_get0_private_key failures
This commit is contained in:
@@ -563,6 +563,7 @@ opensslecdsa_extract_private_key(const dst_key_t *key, unsigned char *buf,
|
||||
|
||||
privkey = EC_KEY_get0_private_key(eckey);
|
||||
if (privkey == NULL) {
|
||||
ERR_clear_error();
|
||||
return (false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user