summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-01-27 08:08:08 -0500
committerNick Mathewson <nickm@torproject.org>2017-01-27 08:08:08 -0500
commit782c52658c1f0e2a0a49b4ba990b0b420dd129c1 (patch)
tree58b4f2317e897a8fb4cbff14d25d5ef1249d56ce /src
parent81c78ec7556b4071b4eb1f60c4867d6ba8cf4685 (diff)
downloadtor-782c52658c1f0e2a0a49b4ba990b0b420dd129c1.tar.gz
tor-782c52658c1f0e2a0a49b4ba990b0b420dd129c1.zip
Remove an impossible comparison.
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c3
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;