Remove superfluous check: SIOCAIFADDR must have ifra_addr supplied.

This commit is contained in:
Gleb Smirnoff 2011-11-24 22:46:11 +00:00
parent bd47ae58a6
commit c6e5c71116

View File

@ -541,10 +541,7 @@ in_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp,
maskIsNew = 0;
hostIsNew = 1;
error = 0;
if (ifra->ifra_addr.sin_len == 0) {
ifra->ifra_addr = ia->ia_addr;
hostIsNew = 0;
} else if (ifra->ifra_addr.sin_addr.s_addr ==
if (ifra->ifra_addr.sin_addr.s_addr ==
ia->ia_addr.sin_addr.s_addr)
hostIsNew = 0;
if (ifra->ifra_mask.sin_len) {