]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
Revert "BUG/MINOR: jwt: Missing 'jwt_tokenize' return value check"
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 9 Mar 2026 15:53:06 +0000 (16:53 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 9 Mar 2026 15:53:06 +0000 (16:53 +0100)
This reverts commit 5e14904fef4856372433fc5b7e8d3de9450ec1b5.

The patch is broken, a better implementation is needed.

src/sample.c

index 07846caee77d07d52eed276536a05783a0ca573e..f8150eaa53be633eed41506aaa5b4a04ef4fe4e1 100644 (file)
@@ -4795,8 +4795,7 @@ static int sample_conv_jwt_member_query(const struct arg *args, struct sample *s
        int retval = 0;
        int ret;
 
-       if (jwt_tokenize(&smp->data.u.str, items, &item_num))
-               goto end;
+       jwt_tokenize(&smp->data.u.str, items, &item_num);
 
        if (item_num < member + 1)
                goto end;