mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Do not shadow variables in networking code
This commit is contained in:
@@ -197,8 +197,8 @@ bool CNetAddr::IsValid() const
|
||||
return false;
|
||||
|
||||
// unspecified IPv6 address (::/128)
|
||||
unsigned char ipNone[16] = {};
|
||||
if (memcmp(ip, ipNone, 16) == 0)
|
||||
unsigned char ipNone6[16] = {};
|
||||
if (memcmp(ip, ipNone6, 16) == 0)
|
||||
return false;
|
||||
|
||||
// documentation IPv6 address
|
||||
|
||||
Reference in New Issue
Block a user