mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Add created timestamp to a rend cache failure entry
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
This commit is contained in:
parent
c265621a52
commit
6e96723524
@ -129,6 +129,7 @@ rend_cache_failure_intro_entry_new(rend_intro_point_failure_t failure)
|
|||||||
{
|
{
|
||||||
rend_cache_failure_intro_t *entry = tor_malloc(sizeof(*entry));
|
rend_cache_failure_intro_t *entry = tor_malloc(sizeof(*entry));
|
||||||
entry->failure_type = failure;
|
entry->failure_type = failure;
|
||||||
|
entry->created_ts = time(NULL);
|
||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +34,9 @@ typedef struct rend_cache_entry_t {
|
|||||||
|
|
||||||
/* Introduction point failure type. */
|
/* Introduction point failure type. */
|
||||||
typedef struct rend_cache_failure_intro_t {
|
typedef struct rend_cache_failure_intro_t {
|
||||||
|
/* When this intro point failure occured thus we allocated this object and
|
||||||
|
* cache it. */
|
||||||
|
time_t created_ts;
|
||||||
rend_intro_point_failure_t failure_type;
|
rend_intro_point_failure_t failure_type;
|
||||||
} rend_cache_failure_intro_t;
|
} rend_cache_failure_intro_t;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user