comparison src/event/ngx_event_quic_transport.c @ 8256:0a18893299fe quic

Fixed parsing NGX_QUIC_FT_CONNECTION_CLOSE.
author Sergey Kandaurov <pluknet@nginx.com>
date Sat, 21 Mar 2020 19:45:24 +0300
parents 556b34a863b2
children 085fd6e68367
comparison
equal deleted inserted replaced
8255:556b34a863b2 8256:0a18893299fe
660 return NGX_ERROR; 660 return NGX_ERROR;
661 } 661 }
662 662
663 if (f->type == NGX_QUIC_FT_CONNECTION_CLOSE) { 663 if (f->type == NGX_QUIC_FT_CONNECTION_CLOSE) {
664 p = ngx_quic_parse_int(p, end, &f->u.close.frame_type); 664 p = ngx_quic_parse_int(p, end, &f->u.close.frame_type);
665 ngx_log_error(NGX_LOG_ERR, pkt->log, 0, 665 if (p == NULL) {
666 "failed to parse close connection frame type"); 666 ngx_log_error(NGX_LOG_ERR, pkt->log, 0,
667 return NGX_ERROR; 667 "failed to parse close connection frame type");
668 return NGX_ERROR;
669 }
668 } 670 }
669 671
670 p = ngx_quic_parse_int(p, end, &varint); 672 p = ngx_quic_parse_int(p, end, &varint);
671 if (p == NULL) { 673 if (p == NULL) {
672 ngx_log_error(NGX_LOG_ERR, pkt->log, 0, 674 ngx_log_error(NGX_LOG_ERR, pkt->log, 0,