summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-12-29 19:42:54 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-12-29 19:42:54 +0300
commit30a83a115974b1898e666eefe206597b897c06b4 (patch)
tree53f5ca77e321c3df1aead45f074b8570a79a4483 /src/nxt_http.h
parent4c4981f992f8b6252e1547f80d55904078cec992 (diff)
downloadunit-30a83a115974b1898e666eefe206597b897c06b4.tar.gz
unit-30a83a115974b1898e666eefe206597b897c06b4.tar.bz2
Using correct pointer and size for memzero operation.
Found by Coverity (CID 215689).
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r--src/nxt_http.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index e857ded4..f3143687 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -55,8 +55,12 @@ typedef struct {
nxt_http_te_t transfer_encoding:8; /* 2 bits */
nxt_http_request_t *request;
- nxt_conn_t *conn;
nxt_buf_t *buffers;
+ /*
+ * All fields before the conn field will
+ * be zeroed in a keep-alive connection.
+ */
+ nxt_conn_t *conn;
} nxt_h1proto_t;