FreeBSD Bugzilla – Attachment 13570 Details for
Bug 25756
Patch against crash caused by use of uninitialized variable in ip_output.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.13 KB, created by
Unicorn
on 2001-03-13 01:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Unicorn
Created:
2001-03-13 01:20:00 UTC
Size:
1.13 KB
patch
obsolete
>Index: ip_output.c >=================================================================== >RCS file: /home/ncvs/src/sys/netinet/ip_output.c,v >retrieving revision 1.122 >diff -u -r1.122 ip_output.c >--- ip_output.c 2001/02/26 20:05:32 1.122 >+++ ip_output.c 2001/03/13 00:47:03 >@@ -91,6 +91,9 @@ > (ntohl(a.s_addr))&0xFF); > #endif > >+#define ifatoia(ifa) ((struct in_ifaddr *)(ifa)) >+#define sintosa(sin) ((struct sockaddr *)(sin)) >+ > u_short ip_id; > > static struct mbuf *ip_insertoptions __P((struct mbuf *, struct mbuf *, int *)); >@@ -168,6 +171,7 @@ > rule = (struct ip_fw_chain *)(m->m_data) ; > opt = NULL ; > ro = & ( ((struct dn_pkt *)m)->ro ) ; >+ ia = ifatoia(ro->ro_rt->rt_ifa); > imo = NULL ; > dst = ((struct dn_pkt *)m)->dn_dst ; > ifp = ((struct dn_pkt *)m)->ifp ; >@@ -233,8 +237,6 @@ > * If routing to interface only, > * short circuit routing lookup. > */ >-#define ifatoia(ifa) ((struct in_ifaddr *)(ifa)) >-#define sintosa(sin) ((struct sockaddr *)(sin)) > if (flags & IP_ROUTETOIF) { > if ((ia = ifatoia(ifa_ifwithdstaddr(sintosa(dst)))) == 0 && > (ia = ifatoia(ifa_ifwithnet(sintosa(dst)))) == 0) {
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 25756
: 13570