We can make code simplier after last change.

Noticed by:	Andrew Thompson
This commit is contained in:
glebius 2005-02-22 08:35:24 +00:00
parent 47d7a7aa18
commit 606d160676

View File

@ -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;