mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: jwt: Missing "case" in switch statement
Because of missing "case" keyword in front of the values in a switch case statement, the values were interpreted as goto tags and the switch statement became useless. This patch should fix GitHub issue #3200. The fix should be backported up to 2.8.
This commit is contained in:
parent
36133759d3
commit
2b3d13a740
1 changed files with 3 additions and 3 deletions
|
|
@ -4519,9 +4519,9 @@ static int sample_conv_jwt_verify_check(struct arg *args, struct sample_conv *co
|
|||
|
||||
if (args[1].type == ARGT_STR) {
|
||||
switch (alg) {
|
||||
JWS_ALG_HS256:
|
||||
JWS_ALG_HS384:
|
||||
JWS_ALG_HS512:
|
||||
case JWS_ALG_HS256:
|
||||
case JWS_ALG_HS384:
|
||||
case JWS_ALG_HS512:
|
||||
/* don't try to load a file with HMAC algorithms */
|
||||
retval = 1;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue