Skip to content

Commit

Permalink
fix typo in CNetAddr::IsRFC4843() (fixes #850)
Browse files Browse the repository at this point in the history
  • Loading branch information
laanwj committed Feb 17, 2012
1 parent e07180a commit ec52b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec52b97

Please sign in to comment.