https://bugs.openldap.org/show_bug.cgi?id=10149

--- Comment #6 from [email protected] <[email protected]> ---
Due to a regression in openssl which broke error handling, the following
additional workaround is needed until
https://github.com/openssl/openssl/issues/26412 is fixed.

diff --git a/libraries/libldap/tls_o.c b/libraries/libldap/tls_o.c
index ab9338944..1619e937a 100644
--- a/libraries/libldap/tls_o.c
+++ b/libraries/libldap/tls_o.c
@@ -556,7 +556,7 @@ tlso_ctx_init( struct ldapoptions *lo, struct ldaptls *lt,
int is_server, char *
                                        }
                                        OSSL_STORE_INFO_free( info );
                                }
-                               if (OSSL_STORE_error(sctx)) {
+                               if (!OSSL_STORE_eof(sctx) &&
OSSL_STORE_error(sctx)) {
                                        Debug1( LDAP_DEBUG_ANY,
                                                "TLS: could not load from uri
`%s'.\n",
                                                lo->ldo_tls_uris[i] );
@@ -776,7 +776,7 @@ tlso_ctx_init( struct ldapoptions *lo, struct ldaptls *lt,
int is_server, char *
                                }
                                OSSL_STORE_INFO_free(info);
                        }
-                       if (OSSL_STORE_error(sctx)) {
+                       if (!OSSL_STORE_eof(sctx) && OSSL_STORE_error(sctx)) {
                                Debug1( LDAP_DEBUG_ANY,
                                        "TLS: could not load from uri `%s'.\n",
                                        lo->ldo_tls_uris[i] );

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to