From: Sergey Kandaurov Date: Sat, 21 Mar 2020 15:44:10 +0000 (+0300) Subject: Fixed build with macOS's long long abomination. X-Git-Tag: release-1.25.0~4^2~855 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=4764ef15902bc749356507fc01aa7503e17c81a8;p=nginx.git Fixed build with macOS's long long abomination. --- diff --git a/src/event/ngx_event_quic_transport.c b/src/event/ngx_event_quic_transport.c index b12ea2bc1..577ad7d45 100644 --- a/src/event/ngx_event_quic_transport.c +++ b/src/event/ngx_event_quic_transport.c @@ -667,13 +667,15 @@ ngx_quic_parse_frame(ngx_quic_header_t *pkt, u_char *start, u_char *end, return NGX_ERROR; } - p = ngx_quic_parse_int(p, end, &f->u.close.reason.len); + p = ngx_quic_parse_int(p, end, &varint); if (p == NULL) { ngx_log_error(NGX_LOG_ERR, pkt->log, 0, "failed to parse close reason length"); return NGX_ERROR; } + f->u.close.reason.len = varint; + p = ngx_quic_read_bytes(p, end, f->u.close.reason.len, &f->u.close.reason.data); if (p == NULL) {