Fix #7165: Missed another 'Append() --> push_back()' replacement (#7548)

(cherry picked from commit 0ab6244f6b)
This commit is contained in:
PeterN 2019-04-27 20:47:32 +01:00 committed by Jonathan G Rennison
parent 0e5dfa42c3
commit 9197926bca

View File

@ -174,7 +174,7 @@ static void NetworkFindBroadcastIPsInternal(NetworkAddressList *broadcast) // !G
(r.ifr_flags & IFF_BROADCAST) &&
ioctl(sock, SIOCGIFBRDADDR, &r) != -1) {
NetworkAddress addr(&r.ifr_broadaddr, sizeof(sockaddr));
if (std::none_of(broadcast->begin(), broadcast->end(), [&addr](NetworkAddress const& elem) -> bool { return elem == addr; })) *broadcast->Append() = addr;
if (std::none_of(broadcast->begin(), broadcast->end(), [&addr](NetworkAddress const& elem) -> bool { return elem == addr; })) broadcast->push_back(addr);
}
}