]> source.dussan.org Git - rspamd.git/commitdiff
Zero memory before usage
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 4 Dec 2015 16:26:15 +0000 (16:26 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 4 Dec 2015 16:26:15 +0000 (16:26 +0000)
src/libserver/rspamd_control.c

index 58147178f7165f4ea581ed639ca2b6c1e90af9a6..8f2b66641ba461726b65ced4e8aac37816e1e45c 100644 (file)
@@ -582,6 +582,7 @@ rspamd_srv_handler (gint fd, short what, gpointer ud)
 
                /* Attach fd to the message */
                if (rdata->fd != -1) {
+                       memset (fdspace, 0, sizeof (fdspace));
                        msg.msg_control = fdspace;
                        msg.msg_controllen = sizeof (fdspace);
                        cmsg = CMSG_FIRSTHDR (&msg);