From: Vladimir Homutov Date: Fri, 9 Oct 2020 13:57:19 +0000 (+0300) Subject: QUIC: reset error and error_reason prior to processing packet. X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=bb64f2017a5e549cd5883ee3ebee23a6a82d5c2e;p=nginx.git QUIC: reset error and error_reason prior to processing packet. --- 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)