aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-02-17 14:40:21 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2012-02-17 14:40:21 +0100
commitd3896211d2c30de6968a6cead8d1debdc9002513 (patch)
treead4c921bd15dcdae3942d22522ecc77cf601a7fe /src/netbase.cpp
parentb7c25e0c1346256be12310264ea5cc4ce7794118 (diff)
fix typo in CNetAddr::IsRFC4843() (fixes #850)
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index 54aa933a54..7799a65972 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -402,7 +402,7 @@ bool CNetAddr::IsRFC6145() const
bool CNetAddr::IsRFC4843() const
{
- return (GetByte(15) == 0x20 && GetByte(14) == 0x01 && GetByte(13) == 0x00 && GetByte(12) & 0xF0 == 0x10);
+ return (GetByte(15) == 0x20 && GetByte(14) == 0x01 && GetByte(13) == 0x00 && (GetByte(12) & 0xF0) == 0x10);
}
bool CNetAddr::IsLocal() const