mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Ensure that dst is bzeroed before calling rtalloc_ign(), to avoid possible
routing table corruption. PR: kern/40563, freebsd4/432 (KAME) Obtained from: NetBSD (in_gif.c rev 1.26.10.1) Requested by: Jean-Luc Richier
This commit is contained in:
parent
d05bb9a2a6
commit
27de0135ce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130662
@ -177,6 +177,7 @@ in_gif_output(ifp, family, m)
|
||||
if (dst->sin_family != sin_dst->sin_family ||
|
||||
dst->sin_addr.s_addr != sin_dst->sin_addr.s_addr) {
|
||||
/* cache route doesn't match */
|
||||
bzero(dst, sizeof(*dst));
|
||||
dst->sin_family = sin_dst->sin_family;
|
||||
dst->sin_len = sizeof(struct sockaddr_in);
|
||||
dst->sin_addr = sin_dst->sin_addr;
|
||||
|
Loading…
Reference in New Issue
Block a user