mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-09 23:39:55 +00:00
MINOR: mux-h2: remove useless check for empty frame length in h2s_decode_headers()
This test for an empty frame was already performed in the callers, there is no need for checking it again.
This commit is contained in:
parent
deab244dc1
commit
6fa380dbba
@ -3143,12 +3143,6 @@ static int h2s_decode_headers(struct h2s *h2s)
|
||||
int wrap;
|
||||
int try = 0;
|
||||
|
||||
if (!h2c->dfl) {
|
||||
/* RFC7540#4.2 */
|
||||
h2c_error(h2c, H2_ERR_FRAME_SIZE_ERROR); // empty headers frame!
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (b_data(&h2c->dbuf) < h2c->dfl && !b_full(&h2c->dbuf))
|
||||
return 0; // incomplete input frame
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user