]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: initialize imsg_hdr
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 16 Apr 2018 18:48:24 +0000 (14:48 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 17 Apr 2018 17:58:24 +0000 (13:58 -0400)
Not fully initialized.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/imsg.c

index 0ea1dd6302bbbe6be333db6da64b5d9549994c24..6419f805abb57c6ed2f568d4ccf05e1dfe29cff1 100644 (file)
@@ -241,6 +241,8 @@ struct ibuf *imsg_create(struct imsgbuf *ibuf, uint32_t type, uint32_t peerid,
        struct ibuf *wbuf;
        struct imsg_hdr hdr;
 
+       memset(&hdr, 0x00, IMSG_HEADER_SIZE);
+
        datalen += IMSG_HEADER_SIZE;
        if (datalen > MAX_IMSGSIZE) {
                errno = ERANGE;