tuntap(4): break out after setting TUN_DSTADDR
This is now the only flag we set in this loop, terminate early.
This commit is contained in:
parent
6041d76e0c
commit
486c0b2269
@ -1193,8 +1193,10 @@ tuninit(struct ifnet *ifp)
|
||||
struct sockaddr_in *si;
|
||||
|
||||
si = (struct sockaddr_in *)ifa->ifa_dstaddr;
|
||||
if (si && si->sin_addr.s_addr)
|
||||
if (si && si->sin_addr.s_addr) {
|
||||
tp->tun_flags |= TUN_DSTADDR;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
NET_EPOCH_EXIT(et);
|
||||
|
Loading…
x
Reference in New Issue
Block a user