From 797127a9bff9ed12d05f8bf1b0ca209000e2f7d8 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 22 Feb 2005 08:35:24 +0000 Subject: [PATCH] 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(-) diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index c6b757fb8247..efdab898858d 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;