mirror of
https://github.com/nginx/nginx.git
synced 2025-08-04 21:46:14 +08:00
Fixed build with macOS's long long abomination.
This commit is contained in:
parent
0f77eac8af
commit
4764ef1590
@ -667,13 +667,15 @@ ngx_quic_parse_frame(ngx_quic_header_t *pkt, u_char *start, u_char *end,
|
|||||||
return NGX_ERROR;
|
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) {
|
if (p == NULL) {
|
||||||
ngx_log_error(NGX_LOG_ERR, pkt->log, 0,
|
ngx_log_error(NGX_LOG_ERR, pkt->log, 0,
|
||||||
"failed to parse close reason length");
|
"failed to parse close reason length");
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
f->u.close.reason.len = varint;
|
||||||
|
|
||||||
p = ngx_quic_read_bytes(p, end, f->u.close.reason.len,
|
p = ngx_quic_read_bytes(p, end, f->u.close.reason.len,
|
||||||
&f->u.close.reason.data);
|
&f->u.close.reason.data);
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user