diff options
| author | Andre Oppermann <andre@FreeBSD.org> | 2006-09-11 19:56:10 +0000 |
|---|---|---|
| committer | Andre Oppermann <andre@FreeBSD.org> | 2006-09-11 19:56:10 +0000 |
| commit | 384a05bfd0777cb154b5eaf39a955dac9cc8ebd8 (patch) | |
| tree | 34bec235133334439296f45ec0e8523b7fe53360 /sys/netinet/ip_output.c | |
| parent | 594e3d5d6fae31d84de0facf6f79f01780cde441 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/ip_output.c')
| -rw-r--r-- | sys/netinet/ip_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index f37c99310b0a..267538507a6b 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -246,7 +246,7 @@ again: * Calculate MTU. If we have a route that is up, use that, * otherwise use the interface's MTU. */ - if (ro->ro_rt->rt_flags & (RTF_UP | RTF_HOST)) { + if (ro->ro_rt != NULL && (ro->ro_rt->rt_flags & (RTF_UP|RTF_HOST))) { /* * This case can happen if the user changed the MTU * of an interface after enabling IP on it. Because |
