From: Sergey Kandaurov Date: Sat, 9 May 2020 14:41:07 +0000 (+0300) Subject: Removed redundant long packet type checks. X-Git-Tag: release-1.25.0~4^2~729 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=7ab07b34092341bef7dc98f44189f43ab1f86c3f;p=nginx.git Removed redundant long packet type checks. --- diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index 74db8bc97..93b9a40b5 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -1165,12 +1165,6 @@ ngx_quic_handshake_input(ngx_connection_t *c, ngx_quic_header_t *pkt) return NGX_ERROR; } - if (!ngx_quic_pkt_hs(pkt->flags)) { - ngx_log_error(NGX_LOG_INFO, c->log, 0, - "quic invalid packet type: 0x%xi", pkt->flags); - return NGX_ERROR; - } - if (ngx_quic_parse_handshake_header(pkt) != NGX_OK) { return NGX_ERROR; } @@ -1210,12 +1204,6 @@ ngx_quic_early_input(ngx_connection_t *c, ngx_quic_header_t *pkt) return NGX_ERROR; } - if (!ngx_quic_pkt_zrtt(pkt->flags)) { - ngx_log_error(NGX_LOG_INFO, c->log, 0, - "quic invalid packet type: 0x%xi", pkt->flags); - return NGX_ERROR; - } - if (ngx_quic_parse_handshake_header(pkt) != NGX_OK) { return NGX_ERROR; }