From bb64f2017a5e549cd5883ee3ebee23a6a82d5c2e Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Fri, 9 Oct 2020 16:57:19 +0300 Subject: QUIC: reset error and error_reason prior to processing packet. --- src/event/ngx_event_quic.c | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit