* come back before the TCP connection times out).
*/
- if (tp->t_inpcb->inp_route.ro_rt != NULL &&
- (tp->t_inpcb->inp_route.ro_rt->generation_id != route_generation)) {
+ if ((tp->t_inpcb->inp_route.ro_rt != NULL &&
+ (tp->t_inpcb->inp_route.ro_rt->generation_id != route_generation)) || (tp->t_inpcb->inp_route.ro_rt == NULL)) {
/* check that the source address is still valid */
if (ifa_foraddr(tp->t_inpcb->inp_laddr.s_addr) == NULL) {
if (tp->t_state >= TCPS_CLOSE_WAIT) {
else
return(0); /* silently ignore and keep data in socket */
}
- else { /* Clear the cached route, will be reacquired later */
- rtfree(tp->t_inpcb->inp_route.ro_rt);
- tp->t_inpcb->inp_route.ro_rt = (struct rtentry *)0;
- }
}
}
sendalot = 0;