Skip to content

Commit

Permalink
explicit error clearing when no printing
Browse files Browse the repository at this point in the history
  • Loading branch information
bencemali committed Apr 29, 2024
1 parent fc1bcc7 commit 1b91ea5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/rand/rand_nist.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ __attribute__((noreturn))
static void handleErrors(void) {
#ifndef OPENSSL_NO_STDIO
OSSL_FUNC(ERR_print_errors_fp)(stderr);
#else
ERR_clear_error();
#endif
abort();
}
Expand Down

0 comments on commit 1b91ea5

Please sign in to comment.