BUG/MINOR: jwt: fix variable initialisation
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 8 Jul 2024 12:23:14 +0000 (14:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jul 2024 13:44:58 +0000 (15:44 +0200)
commitd3ffe441cc93c436081e9a5eff2b66779d6d2547
treed01406a222a70dab9aef73e026c334e2ec0d2537
parentc742566b5bfe9406e1aeb459e07b220caff3c2c6
BUG/MINOR: jwt: fix variable initialisation

Set the alg variable from sample_conv_jwt_verify_check() to
JWT_ALG_DEFAULT.

This was reported by coverity in #2630, but since you need to use the
first argument to use the 2nd, this has no real impact.

Mut be backported with 883f1bd (as far as 2.6).

(cherry picked from commit 0a1b251c1a2ac55e135db0f5ac3d241e218308b4)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/sample.c