Skip to content

Commit

Permalink
fix cfg->accept_source_token_in initialization
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Jul 31, 2019
1 parent 0747417 commit 66041a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
08/01/2019
- fix cfg->accept_source_token_in initialization

07/17/2019
- add r->user to sts_hander

Expand Down
3 changes: 3 additions & 0 deletions src/sts.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@ const char *sts_cfg_set_accept_source_token_in(oauth2_sts_cfg_t *cfg,
const char *type,
const char *options)
{
if (cfg->accept_source_token_in == NULL)
cfg->accept_source_token_in =
oauth2_cfg_source_token_init(NULL);
return oauth2_cfg_source_token_set_accept_in(
NULL, cfg->accept_source_token_in, type, options);
}
Expand Down

0 comments on commit 66041a1

Please sign in to comment.