From 606d160676db9afabb3d0d2f714c6174c3d6826b Mon Sep 17 00:00:00 2001 From: glebius Date: Tue, 22 Feb 2005 08:35:24 +0000 Subject: We can make code simplier after last change. Noticed by: Andrew Thompson --- sys/netinet/in_pcb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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; -- cgit v1.1