actually use correct variable in iteration

pull/1965/head
Jeff 2 years ago
parent 6ea97ccaf4
commit f222aecc79
No known key found for this signature in database
GPG Key ID: 025C02EE3A092F2D

@ -307,7 +307,7 @@ namespace llarp::net
if (getifaddrs(&addrs))
throw std::runtime_error{fmt::format("getifaddrs(): {}", strerror(errno))};
for (auto next = addrs; addrs and addrs->ifa_next; addrs = addrs->ifa_next)
for (auto next = addrs; next and next->ifa_next; next = next->ifa_next)
visit(next);
freeifaddrs(addrs);

Loading…
Cancel
Save