[tor-commits] [tor/master] Remove an impossible comparison.

nickm at torproject.org nickm at torproject.org
Fri Jan 27 13:14:20 UTC 2017


commit 782c52658c1f0e2a0a49b4ba990b0b420dd129c1
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Jan 27 08:08:08 2017 -0500

    Remove an impossible comparison.
---
 src/or/config.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/or/config.c b/src/or/config.c
index 40a6573..d0ca561 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -7929,8 +7929,7 @@ static int
 verify_and_store_outbound_address(sa_family_t family, tor_addr_t *addr,
        outbound_addr_t type, or_options_t *options, int validate_only)
 {
-  if (type<0 || type>=OUTBOUND_ADDR_MAX
-      || (family!=AF_INET && family!=AF_INET6)) {
+  if (type>=OUTBOUND_ADDR_MAX || (family!=AF_INET && family!=AF_INET6)) {
     return -1;
   }
   int fam_index=0;





More information about the tor-commits mailing list