Skip to content

Commit 66041a1

Browse files
committed
fix cfg->accept_source_token_in initialization
Signed-off-by: Hans Zandbelt <hans.zandbelt@zmartzone.eu>
1 parent 0747417 commit 66041a1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
08/01/2019
2+
- fix cfg->accept_source_token_in initialization
3+
14
07/17/2019
25
- add r->user to sts_hander
36

src/sts.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,9 @@ const char *sts_cfg_set_accept_source_token_in(oauth2_sts_cfg_t *cfg,
453453
const char *type,
454454
const char *options)
455455
{
456+
if (cfg->accept_source_token_in == NULL)
457+
cfg->accept_source_token_in =
458+
oauth2_cfg_source_token_init(NULL);
456459
return oauth2_cfg_source_token_set_accept_in(
457460
NULL, cfg->accept_source_token_in, type, options);
458461
}

0 commit comments

Comments
 (0)