[tor-commits] [tor/master] Remove a logically dead check to please coverity

nickm at torproject.org nickm at torproject.org
Tue Dec 30 17:11:20 UTC 2014


commit b3b840443ddbf126c5a9c25533986e9b9ea33585
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Dec 30 12:10:30 2014 -0500

    Remove a logically dead check to please coverity
---
 src/common/address.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/src/common/address.c b/src/common/address.c
index 267b4e3..8a0e96d 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);



More information about the tor-commits mailing list