Welcome! Log In Create A New Profile

Advanced

[nginx] HTTP/2: emit PROTOCOL_ERROR on padding errors.

Valentin Bartenev
March 29, 2017 08:58AM
details: http://hg.nginx.org/nginx/rev/d38161da62cd
branches:
changeset: 6955:d38161da62cd
user: Piotr Sikora <piotrsikora@google.com>
date: Sun Mar 26 01:25:05 2017 -0700
description:
HTTP/2: emit PROTOCOL_ERROR on padding errors.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>

diffstat:

src/http/v2/ngx_http_v2.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 052305810ca4 -r d38161da62cd src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c Sun Mar 26 01:25:04 2017 -0700
+++ b/src/http/v2/ngx_http_v2.c Sun Mar 26 01:25:05 2017 -0700
@@ -812,7 +812,8 @@ ngx_http_v2_state_data(ngx_http_v2_conne
"with incorrect length: %uz, padding: %uz",
size, h2c->state.padding);

- return ngx_http_v2_connection_error(h2c, NGX_HTTP_V2_SIZE_ERROR);
+ return ngx_http_v2_connection_error(h2c,
+ NGX_HTTP_V2_PROTOCOL_ERROR);
}

h2c->state.length -= 1 + h2c->state.padding;
@@ -1055,7 +1056,8 @@ ngx_http_v2_state_headers(ngx_http_v2_co
"with incorrect length: %uz, padding: %uz",
h2c->state.length, h2c->state.padding);

- return ngx_http_v2_connection_error(h2c, NGX_HTTP_V2_SIZE_ERROR);
+ return ngx_http_v2_connection_error(h2c,
+ NGX_HTTP_V2_PROTOCOL_ERROR);
}

h2c->state.length -= h2c->state.padding;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] HTTP/2: emit PROTOCOL_ERROR on padding errors.

Valentin Bartenev 329 March 29, 2017 08:58AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 243
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready