]> rtime.felk.cvut.cz Git - frescor/fwp.git/commitdiff
Added missing initialization of ancillary data
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 27 Oct 2009 15:23:10 +0000 (16:23 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 27 Oct 2009 15:26:45 +0000 (16:26 +0100)
fwp/lib/fwp/fwp_vres.c

index 8ef6f0389881e0d45460b8d3fdc53a3b13ea8447..823b1900448021614c0b5f794e298051d9a041c1 100644 (file)
@@ -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);