Skip to content

Commit

Permalink
oops: fix json_deep_copy of claims
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Mar 25, 2020
1 parent aad5dec commit 7de646d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
03/25/2020
- oops: fix json_deep_copy of claims

03/24/2020
- fix memory leak in OAuth 2.0 JWT validation; closes #470; thanks Conrad Thukral
- fix configured private/public key cleanup on process exit
Expand Down
2 changes: 1 addition & 1 deletion src/oauth.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ static apr_byte_t oidc_oauth_validate_jwt_access_token(request_rec *r,
oidc_debug(r, "successfully verified JWT access token: %s",
jwt->payload.value.str);

*token = jwt->payload.value.json;
*token = json_deep_copy(jwt->payload.value.json);
*response = jwt->payload.value.str;

oidc_jwt_destroy(jwt);
Expand Down

0 comments on commit 7de646d

Please sign in to comment.