diff options
author | glebius <glebius@FreeBSD.org> | 2005-02-22 08:35:24 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-02-22 08:35:24 +0000 |
commit | 606d160676db9afabb3d0d2f714c6174c3d6826b (patch) | |
tree | ceede57ebbf87568d40822be9c3668cc5ecf0e30 /sys/netinet | |
parent | 47d7a7aa1811bfacbad1f082130903127b0a88f7 (diff) | |
download | FreeBSD-src-606d160676db9afabb3d0d2f714c6174c3d6826b.zip FreeBSD-src-606d160676db9afabb3d0d2f714c6174c3d6826b.tar.gz |
We can make code simplier after last change.
Noticed by: Andrew Thompson
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/in_pcb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index c6b757f..efdab89 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -621,10 +621,10 @@ in_pcbconnect_setup(inp, nam, laddrp, lportp, faddrp, fportp, oinpp, cred) * If we found a route, use the address * corresponding to the outgoing interface. */ - if (sro.ro_rt) + if (sro.ro_rt) { ia = ifatoia(sro.ro_rt->rt_ifa); - if (sro.ro_rt) RTFREE(sro.ro_rt); + } if (ia == 0) { bzero(&sa, sizeof(sa)); sa.sin_addr = faddr; |