1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

We can make code simplier after last change.

Noticed by:	Andrew Thompson
This commit is contained in:
Gleb Smirnoff 2005-02-22 08:35:24 +00:00
parent 6a1865cdbb
commit 797127a9bf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142212

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;