FreeBSD Bugzilla – Attachment 94965 Details for
Bug 133235
[netinet] [patch] Process SIOCDLIFADDR command incorrectly in in_control()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 660 bytes, created by
soflare
on 2009-03-31 04:30:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
soflare
Created:
2009-03-31 04:30:02 UTC
Size:
660 bytes
patch
obsolete
>--- in.c 2009-03-20 21:09:46.000000000 +0000 >+++ src/sys/netinet/in.c 2009-03-20 21:15:35.000000000 +0000 >@@ -634,11 +634,13 @@ in_lifaddr_ioctl(struct socket *so, u_lo > } > > TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) { >- if (ifa->ifa_addr->sa_family != AF_INET6) >+ struct sockaddr_in *sa; >+ sa=(struct sockaddr_in *)ifa->ifa_addr; >+ if (ifa->ifa_addr->sa_family != AF_INET) > continue; > if (match.s_addr == 0) > break; >- candidate.s_addr = ((struct sockaddr_in *)&ifa->ifa_addr)->sin_addr.s_addr; >+ candidate.s_addr = sa->sin_addr.s_addr; > candidate.s_addr &= mask.s_addr; > if (candidate.s_addr == match.s_addr) > break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 133235
: 94965