[openssl/openssl] c87894: Unlock only when lock was successful

Christian Chinchole noreply at github.com
Wed Jul 3 20:13:58 UTC 2024


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: c8789482214ca3b97b4b5035cf1fa9e788f5f695
      https://github.com/openssl/openssl/commit/c8789482214ca3b97b4b5035cf1fa9e788f5f695
  Author: cchinchole <cpchinchole at gmail.com>
  Date:   2024-07-03 (Wed, 03 Jul 2024)

  Changed paths:
    M crypto/bio/bio_addr.c
    M crypto/engine/eng_table.c
    M doc/man3/CRYPTO_THREAD_run_once.pod

  Log Message:
  -----------
  Unlock only when lock was successful

Addressing issue (#24517):
Updated the example in CRYPTO_THREAD_run_once.pod to reflect that an unlock call should not be made if a write_lock failed.
Updated BIO_lookup_ex in bio_addr.c and ossl_engine_table_select in eng_table.c to not call unlock if the lock failed.

Reviewed-by: Neil Horman <nhorman at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/24779)

(cherry picked from commit 3f4da93678497fe64d262d03c388932f7ecfe74e)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications


More information about the openssl-commits mailing list