diff options
author | Vladimir Homutov <vl@nginx.com> | 2020-10-09 16:57:19 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2020-10-09 16:57:19 +0300 |
commit | bb64f2017a5e549cd5883ee3ebee23a6a82d5c2e (patch) | |
tree | 82dc4d368843305dcdb141edd6f40ebd240a61e0 /src | |
parent | c245c9ea2018f9f23afe9c8a6bd8f7b4a8a05830 (diff) | |
download | nginx-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.c | 5 |
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) |