Skip to content

Commit 4543c6c

Browse files
committed
metadata: avoid double-free when validation of provider metadata fails
Signed-off-by: Hans Zandbelt <[email protected]>
1 parent f68f618 commit 4543c6c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
11/17/2025
2+
- metadata: avoid double-free when validation of provider metadata fails
3+
14
11/14/2025
25
- test: add test/test_proto.c and migrate proto tests from test.c
36

src/metadata.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,6 @@ apr_byte_t oidc_metadata_provider_retrieve(request_rec *r, oidc_cfg_t *cfg, cons
753753

754754
/* check to see if it is valid metadata */
755755
if (oidc_metadata_provider_is_valid(r, cfg, *j_metadata, issuer) == FALSE) {
756-
json_decref(*j_metadata);
757756
return FALSE;
758757
}
759758

0 commit comments

Comments
 (0)