mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-25 06:53:03 +00:00
BUG/MINOR: h2: do not accept SETTINGS_ENABLE_PUSH other than 0 or 1
We don't use yet it but for correctness, let's enforce the check. To backport to 1.8.
This commit is contained in:
parent
497456154e
commit
1b38b46ab7
@ -1102,6 +1102,12 @@ static int h2c_handle_settings(struct h2c *h2c)
|
||||
}
|
||||
h2c->mfs = arg;
|
||||
break;
|
||||
case H2_SETTINGS_ENABLE_PUSH:
|
||||
if (arg < 0 || arg > 1) { // RFC7540#6.5.2
|
||||
error = H2_ERR_PROTOCOL_ERROR;
|
||||
goto fail;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user