[openssl/openssl] 9a7499: Unlock only when lock was successful

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


  Branch: refs/heads/openssl-3.3
  Home:   https://github.com/openssl/openssl
  Commit: 9a74998c7527f328597852c9579aed10d6ba325c
      https://github.com/openssl/openssl/commit/9a74998c7527f328597852c9579aed10d6ba325c
  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