changeset 8380:efe1f104caf7 quic

Removed redundant long packet type checks.
author Sergey Kandaurov <pluknet@nginx.com>
date Sat, 09 May 2020 17:41:07 +0300
parents aecd8ec29c8e
children 6e100d8c138a
files src/event/ngx_event_quic.c
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -1165,12 +1165,6 @@ ngx_quic_handshake_input(ngx_connection_
         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
         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;
     }