commio: Properly zero a struct msghdr.
This bug is probably not noticeable because all specified fields are initialized later.
This commit is contained in:
parent
e053adc87e
commit
ee2d4c2d9d
1 changed files with 1 additions and 1 deletions
|
@ -2222,7 +2222,7 @@ rb_send_fd_buf(rb_fde_t *xF, rb_fde_t **F, int count, void *data, size_t datasiz
|
|||
char empty = '0';
|
||||
char *buf;
|
||||
|
||||
memset(&msg, 0, sizeof(&msg));
|
||||
memset(&msg, 0, sizeof msg);
|
||||
if(datasize == 0)
|
||||
{
|
||||
iov[0].iov_base = ∅
|
||||
|
|
Loading…
Reference in a new issue