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:
parent
6a1865cdbb
commit
797127a9bf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142212
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user