Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
src: remove unnecessary function call
  • Loading branch information
tniessen committed Apr 9, 2019
commit 08f913f45fb6c1e5ac19c029a04badb5fa298143
3 changes: 1 addition & 2 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6085,9 +6085,8 @@ class RSAKeyPairGenerationConfig : public KeyPairGenerationConfig {
CHECK_NOT_NULL(bn.get());
CHECK(BN_set_word(bn.get(), exponent_));
// EVP_CTX acceps ownership of bn on success.
if (EVP_PKEY_CTX_set_rsa_keygen_pubexp(ctx.get(), bn.get()) <= 0)
if (EVP_PKEY_CTX_set_rsa_keygen_pubexp(ctx.get(), bn.release()) <= 0)
Comment thread
tniessen marked this conversation as resolved.
return false;
bn.release();
}

return true;
Expand Down