Fixed build with macOS's long long abomination.

This commit is contained in:
Sergey Kandaurov 2020-03-21 18:44:10 +03:00
parent 0f77eac8af
commit 4764ef1590

View File

@ -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) {