mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 04:13:39 +00:00
Don't mis-interpret sockaddr_in6 structures as sockaddr_in structures
when purging routes.
This commit is contained in:
parent
f47d88b0b7
commit
759c81cbad
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63637
@ -488,7 +488,7 @@ route_IfDelete(struct bundle *bundle, int all)
|
||||
for (cp = sp; cp < ep; cp += rtm->rtm_msglen) {
|
||||
rtm = (struct rt_msghdr *)cp;
|
||||
route_ParseHdr(rtm, sa);
|
||||
if (sa[RTAX_DST]) {
|
||||
if (sa[RTAX_DST] && sa[RTAX_DST]->sa_family == AF_INET) {
|
||||
log_Printf(LogDEBUG, "route_IfDelete: addrs: %x, Netif: %d (%s),"
|
||||
" flags: %x, dst: %s ?\n", rtm->rtm_addrs, rtm->rtm_index,
|
||||
Index2Nam(rtm->rtm_index), rtm->rtm_flags,
|
||||
|
Loading…
Reference in New Issue
Block a user