Skip to content

Commit 7e8c2af

Browse files
committed
Align SSL_CONF_CTX clean-up with SSL and SSL_CTX clean-up
1 parent 213e4c7 commit 7e8c2af

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

native/src/sslconf.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,7 @@ TCN_IMPLEMENT_CALL(void, SSLConf, free)(TCN_STDARGS, jlong cctx)
135135
tcn_ssl_conf_ctxt_t *c = J2P(cctx, tcn_ssl_conf_ctxt_t *);
136136
UNREFERENCED_STDARGS;
137137
TCN_ASSERT(c != 0);
138-
if (c->cctx != NULL) {
139-
SSL_CONF_CTX_free(c->cctx);
140-
c->cctx = NULL;
141-
c->pool = NULL;
142-
}
138+
apr_pool_cleanup_run(c->pool, c, ssl_ctx_config_cleanup);
143139
}
144140

145141
/* Check a command for an SSL_CONF context */

xdocs/miscellaneous/changelog.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
</p>
3333
</section>
3434
<section name="2.0.13" rtext="in development">
35+
<changelog>
36+
<scode>
37+
Refactor the SSL_CONF_CTX clean-up to align it with SSL and SSL_CTX
38+
clean-up. (markt)
39+
</scode>
40+
</changelog>
41+
</section>
42+
<section name="1.3.5" rtext="2026-01-19">
3543
<changelog>
3644
<fix>
3745
Remove group write permissions from the files in the tar.gz source

0 commit comments

Comments
 (0)