diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-02-22 07:39:15 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-02-22 07:39:15 +0000 |
| commit | 914d092f5d6d26ec5b4df84caac436e20f9da807 (patch) | |
| tree | 89d2658ddfaf9aead870ddc3dceca9761471b79c /sys/netinet | |
| parent | 0db8fa89844e22f51bbf82559864a67177f5f52c (diff) | |
Notes
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/in_pcb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 63e25de9598e2..c6b757fb8247c 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -619,11 +619,9 @@ in_pcbconnect_setup(inp, nam, laddrp, lportp, faddrp, fportp, oinpp, cred) } /* * If we found a route, use the address - * corresponding to the outgoing interface - * unless it is the loopback (in case a route - * to our address on another net goes to loopback). + * corresponding to the outgoing interface. */ - if (sro.ro_rt && !(sro.ro_rt->rt_ifp->if_flags & IFF_LOOPBACK)) + if (sro.ro_rt) ia = ifatoia(sro.ro_rt->rt_ifa); if (sro.ro_rt) RTFREE(sro.ro_rt); |
