Fixed cppcheck error

This commit is contained in:
SChernykh 2023-05-26 07:48:38 +02:00
parent e0a3add5f2
commit beea3e2184

View file

@ -2214,6 +2214,7 @@ void P2PServer::P2PClient::on_peer_list_response(const uint8_t* buf)
buf += 2;
// Treat IPv4-mapped addresses as regular IPv4 addresses
// cppcheck-suppress uninitvar
if (is_v6 && ip.is_ipv4_prefix()) {
is_v6 = false;
}