Skip to content

Commit e11b05a

Browse files
authored
Merge branch 'master' into master
2 parents c3bfd92 + f8cda0f commit e11b05a

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
cat test-suite*.log || true
112112
113113
release-test:
114-
runs-on: ubuntu-20.04
114+
runs-on: ubuntu-22.04
115115
name: Check if release would work
116116
steps:
117117
- uses: actions/checkout@v2

src/tls_gnutls.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,8 @@ static int _tls_verify(gnutls_session_t session)
422422
return -1;
423423
}
424424

425+
tlscert->conn = tls->conn;
426+
425427
if (tls->conn->certfail_handler(tlscert, (char *)out.data) == 0) {
426428
xmpp_tlscert_free(tlscert);
427429
gnutls_x509_crt_deinit(cert);

src/tls_openssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,8 @@ static int _tls_verify(int preverify_ok, X509_STORE_CTX *x509_ctx)
540540
if (!tlscert)
541541
return 0;
542542

543+
tlscert->conn = conn;
544+
543545
strophe_debug(conn->ctx, "tls", "preverify_ok:%d\nSubject: %s\nIssuer: %s",
544546
preverify_ok, tlscert->elements[XMPP_CERT_SUBJECT],
545547
tlscert->elements[XMPP_CERT_ISSUER]);

0 commit comments

Comments
 (0)