summaryrefslogtreecommitdiffhomepage
path: root/src/event
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2020-03-13 20:44:32 +0300
committerRoman Arutyunyan <arut@nginx.com>2020-03-13 20:44:32 +0300
commit11dfc1c9439a79881c2d2e73ab1e2c5c71f88499 (patch)
tree24cc3ee6a83f66e9c992365072b51e75bd23eb38 /src/event
parent8f35d300ed0abfd1a0988181de182fe042a6b4e2 (diff)
downloadnginx-11dfc1c9439a79881c2d2e73ab1e2c5c71f88499.tar.gz
nginx-11dfc1c9439a79881c2d2e73ab1e2c5c71f88499.tar.bz2
Fixed sanitizer errors.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/ngx_event_quic.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c
index f290cbe95..7819e3f51 100644
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -1934,6 +1934,7 @@ static ssize_t
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_quic_stream_send(ngx_connection_t *c, u_char *buf, size_t size)
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 @@ ngx_quic_stream_send(ngx_connection_t *c, u_char *buf, size_t size)
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;
}