comparison src/event/ngx_event_quic_transport.c @ 7720:856d5a2de258 quic

Fixed build with macOS's long long abomination.
author Sergey Kandaurov <pluknet@nginx.com>
date Sat, 21 Mar 2020 18:44:10 +0300
parents c217a907ce42
children 556b34a863b2
comparison
equal deleted inserted replaced
7719:69365c7bb07f 7720:856d5a2de258
665 ngx_log_error(NGX_LOG_ERR, pkt->log, 0, 665 ngx_log_error(NGX_LOG_ERR, pkt->log, 0,
666 "failed to parse close connection frame type"); 666 "failed to parse close connection frame type");
667 return NGX_ERROR; 667 return NGX_ERROR;
668 } 668 }
669 669
670 p = ngx_quic_parse_int(p, end, &f->u.close.reason.len); 670 p = ngx_quic_parse_int(p, end, &varint);
671 if (p == NULL) { 671 if (p == NULL) {
672 ngx_log_error(NGX_LOG_ERR, pkt->log, 0, 672 ngx_log_error(NGX_LOG_ERR, pkt->log, 0,
673 "failed to parse close reason length"); 673 "failed to parse close reason length");
674 return NGX_ERROR; 674 return NGX_ERROR;
675 } 675 }
676
677 f->u.close.reason.len = varint;
676 678
677 p = ngx_quic_read_bytes(p, end, f->u.close.reason.len, 679 p = ngx_quic_read_bytes(p, end, f->u.close.reason.len,
678 &f->u.close.reason.data); 680 &f->u.close.reason.data);
679 if (p == NULL) { 681 if (p == NULL) {
680 ngx_log_error(NGX_LOG_ERR, pkt->log, 0, 682 ngx_log_error(NGX_LOG_ERR, pkt->log, 0,