mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Fix uninitialized variable CIDs in route6d
The variables in question are actually return arguments, but it's still good form to initialize them. Reported by: Coverity CID: 979679 979680 MFC after: 4 weeks Sponsored by: Spectra Logic Corp
This commit is contained in:
parent
f8adf1a784
commit
c6e3715fbc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311985
@ -1062,6 +1062,7 @@ sendpacket(struct sockaddr_in6 *sin6, int len)
|
||||
iov[0].iov_len = len;
|
||||
m.msg_iov = iov;
|
||||
m.msg_iovlen = 1;
|
||||
m.msg_flags = 0;
|
||||
if (!idx) {
|
||||
m.msg_control = NULL;
|
||||
m.msg_controllen = 0;
|
||||
@ -1126,6 +1127,7 @@ riprecv(void)
|
||||
cm = (struct cmsghdr *)cmsgbuf;
|
||||
m.msg_control = (caddr_t)cm;
|
||||
m.msg_controllen = sizeof(cmsgbuf);
|
||||
m.msg_flags = 0;
|
||||
if ((len = recvmsg(ripsock, &m, 0)) < 0) {
|
||||
fatal("recvmsg");
|
||||
/*NOTREACHED*/
|
||||
|
Loading…
Reference in New Issue
Block a user