aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2020-10-09 16:57:19 +0300
committerVladimir Homutov <vl@nginx.com>2020-10-09 16:57:19 +0300
commitbb64f2017a5e549cd5883ee3ebee23a6a82d5c2e (patch)
tree82dc4d368843305dcdb141edd6f40ebd240a61e0 /src
parentc245c9ea2018f9f23afe9c8a6bd8f7b4a8a05830 (diff)
downloadnginx-bb64f2017a5e549cd5883ee3ebee23a6a82d5c2e.tar.gz
nginx-bb64f2017a5e549cd5883ee3ebee23a6a82d5c2e.zip
QUIC: reset error and error_reason prior to processing packet.
Diffstat (limited to 'src')
-rw-r--r--src/event/ngx_event_quic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c
index ccaeccd1e..2e6d4b570 100644
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -1628,6 +1628,11 @@ ngx_quic_input(ngx_connection_t *c, ngx_buf_t *b, ngx_quic_conf_t *conf)
pkt.flags = p[0];
pkt.raw->pos++;
+ if (c->quic) {
+ c->quic->error = 0;
+ c->quic->error_reason = 0;
+ }
+
rc = ngx_quic_process_packet(c, conf, &pkt);
#if (NGX_DEBUG)