summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2015-01-18 15:53:06 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-18 15:53:06 -0500
commit5aa55a1369dbcb849f1290291c48054f25cdd623 (patch)
tree93388408f2514bb2c27339cf9a0ba727f433b95e /src/or
parentfae72a8d0a749a99b9b518c2234aeb5c30552f69 (diff)
downloadtor-5aa55a1369dbcb849f1290291c48054f25cdd623.tar.gz
tor-5aa55a1369dbcb849f1290291c48054f25cdd623.zip
Remove the unused rend_cache_entry_t->received field.
(Patch from arma, commit message from nick.) Closes #14222.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/or.h1
-rw-r--r--src/or/rendcommon.c3
2 files changed, 0 insertions, 4 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 7568fc16a8..f821d0b405 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -4897,7 +4897,6 @@ typedef struct rend_service_descriptor_t {
/** A cached rendezvous descriptor. */
typedef struct rend_cache_entry_t {
size_t len; /**< Length of <b>desc</b> */
- time_t received; /**< When was the descriptor received? */
time_t last_served; /**< When did we last write this one to somebody?
* (HSDir only) */
char *desc; /**< Service descriptor */
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index 82202b9058..866f4fb026 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -1058,7 +1058,6 @@ rend_cache_store_v2_desc_as_dir(const char *desc)
if (e && !strcmp(desc, e->desc)) {
log_info(LD_REND, "We already have this service descriptor with desc "
"ID %s.", safe_str(desc_id_base32));
- e->received = time(NULL);
goto skip;
}
/* Store received descriptor. */
@@ -1075,7 +1074,6 @@ rend_cache_store_v2_desc_as_dir(const char *desc)
rend_service_descriptor_free(e->parsed);
tor_free(e->desc);
}
- e->received = time(NULL);
e->parsed = parsed;
e->desc = tor_strndup(current_desc, encoded_size);
e->len = encoded_size;
@@ -1265,7 +1263,6 @@ rend_cache_store_v2_desc_as_client(const char *desc,
rend_service_descriptor_free(e->parsed);
tor_free(e->desc);
}
- e->received = time(NULL);
e->parsed = parsed;
e->desc = tor_malloc_zero(encoded_size + 1);
strlcpy(e->desc, desc, encoded_size + 1);