Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110080550
D26454.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26454.diff
View Options
Index: head/sys/netinet/ip_output.c
===================================================================
--- head/sys/netinet/ip_output.c
+++ head/sys/netinet/ip_output.c
@@ -323,11 +323,11 @@
struct ifnet *ifp = NULL; /* keep compiler happy */
struct mbuf *m0;
int hlen = sizeof (struct ip);
- int mtu;
+ int mtu = 0;
int error = 0;
struct sockaddr_in *dst, sin;
const struct sockaddr_in *gw;
- struct in_ifaddr *ia;
+ struct in_ifaddr *ia = NULL;
struct in_addr src;
int isbroadcast;
uint16_t ip_len, ip_off;
@@ -485,7 +485,6 @@
* possible that a matching SPD entry exists.
*/
no_route_but_check_spd = 1;
- mtu = 0; /* Silence GCC warning. */
goto sendit;
#endif
IPSTAT_INC(ips_noroute);
@@ -521,7 +520,6 @@
* possible that a matching SPD entry exists.
*/
no_route_but_check_spd = 1;
- mtu = 0; /* Silence GCC warning. */
goto sendit;
#endif
IPSTAT_INC(ips_noroute);
Index: head/sys/netinet/udp_usrreq.c
===================================================================
--- head/sys/netinet/udp_usrreq.c
+++ head/sys/netinet/udp_usrreq.c
@@ -1151,7 +1151,7 @@
struct epoch_tracker et;
int cscov_partial = 0;
int error = 0;
- int ipflags;
+ int ipflags = 0;
u_short fport, lport;
u_char tos;
uint8_t pr;
@@ -1435,7 +1435,6 @@
ip->ip_off |= htons(IP_DF);
}
- ipflags = 0;
if (inp->inp_socket->so_options & SO_DONTROUTE)
ipflags |= IP_ROUTETOIF;
if (inp->inp_socket->so_options & SO_BROADCAST)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 14, 9:10 AM (20 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16640471
Default Alt Text
D26454.diff (1 KB)
Attached To
Mode
D26454: Initialize some local variables earlier
Attached
Detach File
Event Timeline
Log In to Comment