Skip to content

Commit bb31729

Browse files
committed
oauth: fix segfault when using OIDCOAuthVerifySharedKeys; closes #1373
regression since 2.4.16; thanks @contryboy Signed-off-by: Hans Zandbelt <[email protected]>
1 parent b7ef693 commit bb31729

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
12/13/2025
2+
- oauth: fix segfault when using OIDCOAuthVerifySharedKeys, regression since 2.4.16; closes #1373; thanks @contryboy
3+
14
12/08/2025
25
- jwk: fix parsi8ng RSA JWKs with only an "x5c" parameter (i.e. no "n" and "e")
36
- bump to 2.4.19.1dev

src/cfg/oauth.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@ const char *oidc_cmd_oauth_verify_shared_keys_set(cmd_parms *cmd, void *struct_p
299299
char *use = NULL;
300300

301301
oidc_cfg_t *cfg = (oidc_cfg_t *)ap_get_module_config(cmd->server->module_config, &auth_openidc_module);
302-
int offset = (int)(long)cmd->info;
303-
apr_hash_t **shared_keys = (apr_hash_t **)((char *)cfg + offset);
302+
apr_hash_t **shared_keys = &cfg->oauth->verify_shared_keys;
304303

305304
char *kid = NULL, *secret = NULL;
306305
int key_len = 0;

0 commit comments

Comments
 (0)