[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit b3b840443ddbf126c5a9c25533986e9b9ea33585
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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);

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits