diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2001-12-19 14:54:13 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2001-12-19 14:54:13 +0000 |
| commit | 3f9e31220b6ebe58dec2781f026cc5556a555806 (patch) | |
| tree | 641687efea93bbefad531bb2e2e8ee5d851ce65d /sys/netinet | |
| parent | 604fb1c0320959114edf3e044f8a0f2b4cee7034 (diff) | |
Notes
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/ip_output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 58ffb5e00c32..d14edbe9f5ba 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -766,7 +766,8 @@ skip_ipsec: (ro_fwd->ro_rt->rt_flags & RTF_BROADCAST); else isbroadcast = in_broadcast(dst->sin_addr, ifp); - RTFREE(ro->ro_rt); + if (ro->ro_rt) + RTFREE(ro->ro_rt); ro->ro_rt = ro_fwd->ro_rt; dst = (struct sockaddr_in *)&ro_fwd->ro_dst; |
