mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
BUG/MINOR: jwt: Missing 'jwt_tokenize' return value check
There was a "jwt_tokenize" call whose return value was not checked. This was found by coverity and raised in GitHub #3277. This patch can be backported to all stable branches.
This commit is contained in:
parent
af6b9a0967
commit
5e14904fef
@ -4795,7 +4795,8 @@ static int sample_conv_jwt_member_query(const struct arg *args, struct sample *s
|
||||
int retval = 0;
|
||||
int ret;
|
||||
|
||||
jwt_tokenize(&smp->data.u.str, items, &item_num);
|
||||
if (jwt_tokenize(&smp->data.u.str, items, &item_num))
|
||||
goto end;
|
||||
|
||||
if (item_num < member + 1)
|
||||
goto end;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user