changeset 8583:d564e8850975 quic

QUIC: reset error and error_reason prior to processing packet.
author Vladimir Homutov <vl@nginx.com>
date Fri, 09 Oct 2020 16:57:19 +0300
parents b95aa1cb8f98
children 474706351c09
files src/event/ngx_event_quic.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_
         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)