mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
Valgrind: another complaint about uninitialized bytes.
This commit is contained in:
parent
420e41ef09
commit
c974bd7936
1 changed files with 2 additions and 0 deletions
|
|
@ -34,6 +34,8 @@ ngx_write_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size,
|
|||
msg.msg_control = (caddr_t) &cmsg;
|
||||
msg.msg_controllen = sizeof(cmsg);
|
||||
|
||||
ngx_memzero(&cmsg, sizeof(cmsg));
|
||||
|
||||
cmsg.cm.cmsg_len = CMSG_LEN(sizeof(int));
|
||||
cmsg.cm.cmsg_level = SOL_SOCKET;
|
||||
cmsg.cm.cmsg_type = SCM_RIGHTS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue