Skip to content

Commit 16d844f

Browse files
committed
fix child initialization routines using multiple vhosts; closes #1208
this fixes possible segmentation faults when using Redis and Metrics settings in vhosts; thanks @studersi Signed-off-by: Hans Zandbelt <hans.zandbelt@openidc.com>
1 parent db29d31 commit 16d844f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
09/06/2024
22
- allow overriding globally set OIDCCacheType back to shm in vhosts
3+
- correct typo in child initialization routines when using multiple vhosts; closes @1208; thanks @studersi
4+
this fixes possible segmentation faults when using Redis and Metrics settings in vhosts
35

46
09/05/2024
57
- fix OIDCCacheShmMax min/max settings; see #1260; thanks @bbartke

src/mod_auth_openidc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,7 @@ static void oidc_child_init(apr_pool_t *p, server_rec *s) {
21182118
server_rec *sp = s;
21192119
while (sp != NULL) {
21202120
oidc_cfg_t *cfg = (oidc_cfg_t *)ap_get_module_config(sp->module_config, &auth_openidc_module);
2121-
oidc_cfg_child_init(p, cfg, s);
2121+
oidc_cfg_child_init(p, cfg, sp);
21222122
sp = sp->next;
21232123
}
21242124
apr_pool_cleanup_register(p, s, oidc_cleanup_child, apr_pool_cleanup_null);

0 commit comments

Comments
 (0)