From: Michal Sojka Date: Tue, 27 Oct 2009 15:23:10 +0000 (+0100) Subject: Added missing initialization of ancillary data X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/fwp.git/commitdiff_plain/64450d38caad68284081ca418559603442c28e11 Added missing initialization of ancillary data --- diff --git a/fwp/lib/fwp/fwp_vres.c b/fwp/lib/fwp/fwp_vres.c index 8ef6f03..823b190 100644 --- a/fwp/lib/fwp/fwp_vres.c +++ b/fwp/lib/fwp/fwp_vres.c @@ -199,6 +199,8 @@ static inline int _fwp_vres_send(fwp_vres_t *vres, struct fwp_msgb* msgb) struct cmsghdr *cmsg; struct in_pktinfo *ipi; + memset(cmsg_buf, 0, sizeof(cmsg_buf)); + msg.msg_control = cmsg_buf; msg.msg_controllen = sizeof(cmsg_buf);