Skip to content

Commit

Permalink
jwt-common: Call __setkey_check directly
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Collins <[email protected]>
  • Loading branch information
benmcollins committed Feb 12, 2025
1 parent 67cb474 commit e976cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libjwt/jwt-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ int FUNC(verify)(jwt_common_t *__cmd, const char *token)
}

/* Callback may have changed this */
if (FUNC(setkey)(__cmd, config.alg, config.key))
if (__setkey_check(__cmd, config.alg, config.key))
return 1;

jwt->key = config.key;
Expand Down

0 comments on commit e976cdb

Please sign in to comment.