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 authored and ruyadorno committed Mar 30, 2021
1 parent 3925458 commit 50fc6b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crypto/crypto_sig.cc
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 50fc6b9

Please sign in to comment.