Mercurial > hg > nginx
diff src/event/ngx_event_quic.c @ 8217:a5a1b3fad834 quic
Fixed sanitizer errors.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 13 Mar 2020 20:44:32 +0300 |
parents | 0aec63f50c29 |
children | 33feac1e57ac |
line wrap: on
line diff
--- a/src/event/ngx_event_quic.c Fri Mar 13 18:55:58 2020 +0300 +++ b/src/event/ngx_event_quic.c Fri Mar 13 20:44:32 2020 +0300 @@ -1934,6 +1934,7 @@ ngx_quic_stream_send(ngx_connection_t *c, u_char *buf, size_t size) { u_char *p; + ngx_connection_t *pc; ngx_quic_frame_t *frame; ngx_quic_stream_t *qs; ngx_quic_connection_t *qc; @@ -1942,8 +1943,8 @@ ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "quic send: %uz", size); qs = c->qs; - qc = qs->parent->quic; - + pc = qs->parent; + qc = pc->quic; // XXX: get direct pointer from stream structure? sn = ngx_quic_stream_lookup(&qc->stree, qs->id); @@ -1952,12 +1953,12 @@ return NGX_ERROR; } - frame = ngx_pcalloc(c->pool, sizeof(ngx_quic_frame_t)); + frame = ngx_pcalloc(pc->pool, sizeof(ngx_quic_frame_t)); if (frame == NULL) { return 0; } - p = ngx_pnalloc(c->pool, size); + p = ngx_pnalloc(pc->pool, size); if (p == NULL) { return 0; }