Do not shadow variables in networking code

This commit is contained in:
Pavel Janík
2016-08-15 14:10:07 +02:00
parent 1030fa718c
commit b7c349d5e7
5 changed files with 13 additions and 13 deletions

View File

@@ -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