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:
Remi Tricot-Le Breton 2026-02-23 14:56:59 +01:00 committed by Christopher Faulet
parent af6b9a0967
commit 5e14904fef

View File

@ -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;