QUIC: reset error and error_reason prior to processing packet.

This commit is contained in:
Vladimir Homutov 2020-10-09 16:57:19 +03:00
parent c245c9ea20
commit bb64f2017a

View File

@ -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)