commio: Properly zero a struct msghdr.

This bug is probably not noticeable because all specified fields are
initialized later.
This commit is contained in:
Jilles Tjoelker 2014-03-02 22:12:19 +01:00
parent e053adc87e
commit ee2d4c2d9d

View file

@ -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 = ∅