Skip to content

Commit

Permalink
crypto: clear errors in SignTraits::DeriveBits
Browse files Browse the repository at this point in the history
PR-URL: #37820
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
panva committed Mar 25, 2021
1 parent 3700ba0 commit 0ee2cea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crypto/crypto_sig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,7 @@ bool SignTraits::DeriveBits(
Environment* env,
const SignConfiguration& params,
ByteSource* out) {
ClearErrorOnReturn clear_error_on_return;
EVPMDPointer context(EVP_MD_CTX_new());
EVP_PKEY_CTX* ctx = nullptr;

Expand Down

0 comments on commit 0ee2cea

Please sign in to comment.