Skip to content

Commit 27f79ec

Browse files
committed
Actually set the tlscert conn reference when using OpenSSL
Previously it was always NULL
1 parent a2b3b6b commit 27f79ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tls_openssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ static int _tls_verify(int preverify_ok, X509_STORE_CTX *x509_ctx)
536536
X509 *err_cert = X509_STORE_CTX_get_current_cert(x509_ctx);
537537

538538
xmpp_tlscert_t *tlscert = _x509_to_tlscert(conn->ctx, err_cert);
539+
tlscert->conn = conn;
539540

540541
if (!tlscert)
541542
return 0;

0 commit comments

Comments
 (0)