diff options
-rw-r--r-- | src/or/config.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c index 40a6573b01..d0ca561e1f 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; |