[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Remove an impossible comparison.
commit 782c52658c1f0e2a0a49b4ba990b0b420dd129c1
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits