Initialize msg.msg_flags to 0
This mutes a valid coverity warning about it being uninitialized when passed in to sendmsg(2). MFC after: 2 weeks Reported by: Coverity CID: 1368202
This commit is contained in:
parent
4c9f98e28a
commit
1a55af1fb9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311221
@ -226,6 +226,7 @@ udp_send(struct tport *tp, const u_char *buf, size_t len,
|
||||
iov.iov_base = __DECONST(void*, buf);
|
||||
iov.iov_len = len;
|
||||
|
||||
msg.msg_flags = 0;
|
||||
msg.msg_iov = &iov;
|
||||
msg.msg_iovlen = 1;
|
||||
msg.msg_name = __DECONST(void *, addr);
|
||||
|
Loading…
Reference in New Issue
Block a user