diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/err/err.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/lib/libcrypto/err/err.c b/src/lib/libcrypto/err/err.c index f13e889da9..036396bc1a 100644 --- a/src/lib/libcrypto/err/err.c +++ b/src/lib/libcrypto/err/err.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: err.c,v 1.57 2024/02/24 07:50:25 tb Exp $ */ | 1 | /* $OpenBSD: err.c,v 1.58 2024/02/24 07:53:01 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -334,11 +334,8 @@ int_err_get(int create) | |||
| 334 | LHASH_OF(ERR_STRING_DATA) *ret = NULL; | 334 | LHASH_OF(ERR_STRING_DATA) *ret = NULL; |
| 335 | 335 | ||
| 336 | CRYPTO_w_lock(CRYPTO_LOCK_ERR); | 336 | CRYPTO_w_lock(CRYPTO_LOCK_ERR); |
| 337 | if (!int_error_hash && create) { | 337 | if (!int_error_hash && create) |
| 338 | CRYPTO_push_info("int_err_get (err.c)"); | ||
| 339 | int_error_hash = lh_ERR_STRING_DATA_new(); | 338 | int_error_hash = lh_ERR_STRING_DATA_new(); |
| 340 | CRYPTO_pop_info(); | ||
| 341 | } | ||
| 342 | if (int_error_hash) | 339 | if (int_error_hash) |
| 343 | ret = int_error_hash; | 340 | ret = int_error_hash; |
| 344 | CRYPTO_w_unlock(CRYPTO_LOCK_ERR); | 341 | CRYPTO_w_unlock(CRYPTO_LOCK_ERR); |
| @@ -431,11 +428,8 @@ int_thread_get(int create) | |||
| 431 | LHASH_OF(ERR_STATE) *ret = NULL; | 428 | LHASH_OF(ERR_STATE) *ret = NULL; |
| 432 | 429 | ||
| 433 | CRYPTO_w_lock(CRYPTO_LOCK_ERR); | 430 | CRYPTO_w_lock(CRYPTO_LOCK_ERR); |
| 434 | if (!int_thread_hash && create) { | 431 | if (!int_thread_hash && create) |
| 435 | CRYPTO_push_info("int_thread_get (err.c)"); | ||
| 436 | int_thread_hash = lh_ERR_STATE_new(); | 432 | int_thread_hash = lh_ERR_STATE_new(); |
| 437 | CRYPTO_pop_info(); | ||
| 438 | } | ||
| 439 | if (int_thread_hash) { | 433 | if (int_thread_hash) { |
| 440 | int_thread_hash_references++; | 434 | int_thread_hash_references++; |
| 441 | ret = int_thread_hash; | 435 | ret = int_thread_hash; |
