]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Zero initialise msghdr prior to calling sendmesg
authorArne Schwabe <arne@rfc2549.org>
Tue, 5 Jan 2021 13:17:58 +0000 (14:17 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 18 Jan 2021 11:52:30 +0000 (12:52 +0100)
commitaa58035a955a2ae7ffa2b93ca2c8d2c6e5472695
tree32037bfb78450d8fa212a5f8f5ef3abe5268bb4e
parent86d7e9902db7fcbbbc31aaa5b69bee82375caa21
Zero initialise msghdr prior to calling sendmesg

This ensure that all unused fields in msg are zero.

Spotted by Coverity:

Using uninitialized value "msg". Field "msg.msg_flags" is uninitialized
when calling "sendmsg".

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20210105131758.20311-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21418.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/manage.c