diff src/event/ngx_event_quic_protection.c @ 7910:125cbfa77013 quic

Renamed max_packet_size to max_udp_payload_size, from draft-28. No functional changes.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 29 May 2020 12:56:08 +0300
parents df18ae7161b8
children 3de1b7399650
line wrap: on
line diff
--- a/src/event/ngx_event_quic_protection.c
+++ b/src/event/ngx_event_quic_protection.c
@@ -1115,7 +1115,7 @@ ngx_quic_decrypt(ngx_quic_header_t *pkt,
 
     pkt->payload.len = in.len - EVP_GCM_TLS_TAG_LEN;
 
-    if (NGX_QUIC_DEFAULT_MAX_PACKET_SIZE - ad.len < pkt->payload.len) {
+    if (NGX_QUIC_MAX_UDP_PAYLOAD_SIZE - ad.len < pkt->payload.len) {
         return NGX_ERROR;
     }