]> git.kaiwu.me - nginx.git/commitdiff
Fixed build with macOS's long long abomination.
authorSergey Kandaurov <pluknet@nginx.com>
Sat, 21 Mar 2020 15:44:10 +0000 (18:44 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Sat, 21 Mar 2020 15:44:10 +0000 (18:44 +0300)
src/event/ngx_event_quic_transport.c

index b12ea2bc13062d5a380d4cc38fb5f66a68e96875..577ad7d45fa5815fb9a695d9b1d9629d298f17b9 100644 (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) {