aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-03 10:28:10 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-03 10:28:10 -0400
commit4638be5312f527e4769317b2b222faa52bbe0093 (patch)
treef44d1049a7981e72a55b92074ebc5ba7221f2434 /src/or
parentc75215c23ad9e3a3142ce65a06a6231425f0e30e (diff)
downloadtor-4638be5312f527e4769317b2b222faa52bbe0093.tar.gz
tor-4638be5312f527e4769317b2b222faa52bbe0093.zip
Use the standard SHRT_MAX name.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/addressmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/addressmap.c b/src/or/addressmap.c
index a0df5c9865..805d21ae7f 100644
--- a/src/or/addressmap.c
+++ b/src/or/addressmap.c
@@ -642,7 +642,7 @@ client_dns_incr_failures(const char *address)
ent->expires = time(NULL) + MAX_DNS_ENTRY_AGE;
strmap_set(addressmap,address,ent);
}
- if (ent->num_resolve_failures < SHORT_MAX)
+ if (ent->num_resolve_failures < SHRT_MAX)
++ent->num_resolve_failures; /* don't overflow */
log_info(LD_APP, "Address %s now has %d resolve failures.",
safe_str_client(address),
@@ -1153,4 +1153,3 @@ addressmap_get_mappings(smartlist_t *sl, time_t min_expires,
iter = strmap_iter_next(addressmap,iter);
}
}
-