diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-01-18 15:41:13 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-18 15:41:13 -0500 |
commit | fae72a8d0a749a99b9b518c2234aeb5c30552f69 (patch) | |
tree | e0a181b909cec1860642a2dc7de06684cf44784d /src/or/rendcommon.c | |
parent | efdac2a68cb17de7c163a9abba05269888aacb88 (diff) | |
parent | 9407040c592184e05e45a3c1a00739c2dd302288 (diff) | |
download | tor-fae72a8d0a749a99b9b518c2234aeb5c30552f69.tar.gz tor-fae72a8d0a749a99b9b518c2234aeb5c30552f69.zip |
Merge remote-tracking branch 'public/bug14219_025'
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index 88d9aaba48..82202b9058 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -1251,19 +1251,12 @@ rend_cache_store_v2_desc_as_client(const char *desc, /* Do we already have a newer descriptor? */ tor_snprintf(key, sizeof(key), "2%s", service_id); e = (rend_cache_entry_t*) strmap_get_lc(rend_cache, key); - if (e && e->parsed->timestamp > parsed->timestamp) { - log_info(LD_REND, "We already have a newer service descriptor for " + if (e && e->parsed->timestamp >= parsed->timestamp) { + log_info(LD_REND, "We already have a new enough service descriptor for " "service ID %s with the same desc ID and version.", safe_str_client(service_id)); goto okay; } - /* Do we already have this descriptor? */ - if (e && !strcmp(desc, e->desc)) { - log_info(LD_REND,"We already have this service descriptor %s.", - safe_str_client(service_id)); - e->received = time(NULL); - goto okay; - } if (!e) { e = tor_malloc_zero(sizeof(rend_cache_entry_t)); strmap_set_lc(rend_cache, key, e); |