Skip to content

Commit aa3c2b7

Browse files
committed
use the server process pool for static variable allocation
rather than the pconf pool, to prevents possible segmentation faults after (graceful) restarting the same process; bump to 2.4.17.3dev Signed-off-by: Hans Zandbelt <[email protected]>
1 parent 72304a4 commit aa3c2b7

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
08/15/2025
2+
- use the server process pool for static variable allocation rather than the pconf pool
3+
to prevents possible segmentation faults after (graceful) restarting the same process
4+
- bump to 2.4.17.3dev
5+
16
07/28/2025
27
- release 2.4.17.2
38

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([mod_auth_openidc],[2.4.17.2],[[email protected]])
1+
AC_INIT([mod_auth_openidc],[2.4.17.3dev],[[email protected]])
22

33
AC_SUBST(NAMEVER, AC_PACKAGE_TARNAME()-AC_PACKAGE_VERSION())
44

src/cfg/dir.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ const apr_array_header_t *oidc_cfg_dir_pass_userinfo_as_get(request_rec *r) {
588588
if (dir_cfg->pass_userinfo_as == NULL) {
589589
if (pass_userinfo_as_default == NULL) {
590590
pass_userinfo_as_default =
591-
apr_array_make(r->server->process->pconf, 3, sizeof(oidc_pass_user_info_as_t *));
592-
oidc_cfg_dir_parse_pass_userinfo_as(r->server->process->pconf, OIDC_DEFAULT_PASS_USERINFO_AS,
591+
apr_array_make(r->server->process->pool, 3, sizeof(oidc_pass_user_info_as_t *));
592+
oidc_cfg_dir_parse_pass_userinfo_as(r->server->process->pool, OIDC_DEFAULT_PASS_USERINFO_AS,
593593
&p);
594594
APR_ARRAY_PUSH(pass_userinfo_as_default, oidc_pass_user_info_as_t *) = p;
595595
}

src/util/jwt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static const char *oidc_util_jwt_hdr_dir_a256gcm(request_rec *r, char *input) {
6565

6666
p = _oidc_strstr(compact_encoded_jwt, "..");
6767
if (p) {
68-
_oidc_jwt_hdr_dir_a256gcm = apr_pstrndup(r->server->process->pconf, compact_encoded_jwt,
68+
_oidc_jwt_hdr_dir_a256gcm = apr_pstrndup(r->server->process->pool, compact_encoded_jwt,
6969
_oidc_strlen(compact_encoded_jwt) - _oidc_strlen(p) + 2);
7070
oidc_debug(r, "saved _oidc_jwt_hdr_dir_a256gcm header: %s", _oidc_jwt_hdr_dir_a256gcm);
7171
}

0 commit comments

Comments
 (0)