comparison src/event/ngx_event_quic.c @ 8320:6e1213ef469a quic

Rejecting new connections with non-zero Initial packet.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 06 Apr 2020 14:54:10 +0300
parents 29354c6fc5f2
children e45719a9b148
comparison
equal deleted inserted replaced
8319:29354c6fc5f2 8320:6e1213ef469a
529 529
530 if (ngx_quic_decrypt(pkt, NULL) != NGX_OK) { 530 if (ngx_quic_decrypt(pkt, NULL) != NGX_OK) {
531 return NGX_ERROR; 531 return NGX_ERROR;
532 } 532 }
533 533
534 if (pkt->pn != 0) {
535 ngx_log_error(NGX_LOG_INFO, c->log, 0,
536 "invalid initial packet number %L", pkt->pn);
537 return NGX_ERROR;
538 }
539
534 if (ngx_quic_init_connection(c) != NGX_OK) { 540 if (ngx_quic_init_connection(c) != NGX_OK) {
535 return NGX_ERROR; 541 return NGX_ERROR;
536 } 542 }
537 543
538 if (ngx_quic_payload_handler(c, pkt) != NGX_OK) { 544 if (ngx_quic_payload_handler(c, pkt) != NGX_OK) {