Skip to content

Commit

Permalink
fix child initialization routines using multiple vhosts; closes @1208
Browse files Browse the repository at this point in the history
this fixes possible segmentation faults when using Redis and Metrics
settings in vhosts; thanks @studersi

Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Sep 6, 2024
1 parent db29d31 commit ad98ea7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
09/06/2024
- allow overriding globally set OIDCCacheType back to shm in vhosts
- correct typo in child initialization routines when using multiple vhosts; closes @1208; thanks @studersi
this fixes possible segmentation faults when using Redis and Metrics settings in vhosts

09/05/2024
- fix OIDCCacheShmMax min/max settings; see #1260; thanks @bbartke
Expand Down
2 changes: 1 addition & 1 deletion src/mod_auth_openidc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2118,7 +2118,7 @@ static void oidc_child_init(apr_pool_t *p, server_rec *s) {
server_rec *sp = s;
while (sp != NULL) {
oidc_cfg_t *cfg = (oidc_cfg_t *)ap_get_module_config(sp->module_config, &auth_openidc_module);
oidc_cfg_child_init(p, cfg, s);
oidc_cfg_child_init(p, cfg, sp);
sp = sp->next;
}
apr_pool_cleanup_register(p, s, oidc_cleanup_child, apr_pool_cleanup_null);
Expand Down

0 comments on commit ad98ea7

Please sign in to comment.