diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-12-30 12:10:30 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-12-30 12:10:30 -0500 |
commit | b3b840443ddbf126c5a9c25533986e9b9ea33585 (patch) | |
tree | f9a693aa86482bb512043b1267c1a2818622e2fe /src/common/address.c | |
parent | ac632a784cdeecaef81e5f1fe45a20f43a93aea7 (diff) | |
download | tor-b3b840443ddbf126c5a9c25533986e9b9ea33585.tar.gz tor-b3b840443ddbf126c5a9c25533986e9b9ea33585.zip |
Remove a logically dead check to please coverity
Diffstat (limited to 'src/common/address.c')
-rw-r--r-- | src/common/address.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/common/address.c b/src/common/address.c index 267b4e38aa..8a0e96ddde 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -1026,7 +1026,6 @@ tor_addr_compare_masked(const tor_addr_t *addr1, const tor_addr_t *addr2, } else { a2 = tor_addr_to_ipv4h(addr2); } - if (mbits <= 0) return 0; if (mbits > 32) mbits = 32; a1 >>= (32-mbits); a2 >>= (32-mbits); |