diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-09-20 11:01:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-09-20 11:01:10 -0400 |
commit | 6178aaea0698d7f62754c2aa1574ad7fd4fa781d (patch) | |
tree | d60df65fdf156d8caffb572acb79ff76a37c47d1 /src/or/rendservice.c | |
parent | ee01e41937947eb77c02f552d59090c0ea280f98 (diff) | |
parent | 07bb17185681f875be461c4fea6c661fae2dfde9 (diff) | |
download | tor-6178aaea0698d7f62754c2aa1574ad7fd4fa781d.tar.gz tor-6178aaea0698d7f62754c2aa1574ad7fd4fa781d.zip |
Merge remote-tracking branch 'origin/maint-0.2.4'
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 730e47f5cd..0c52552f67 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -593,6 +593,7 @@ rend_service_update_descriptor(rend_service_t *service) d = service->desc = tor_malloc_zero(sizeof(rend_service_descriptor_t)); d->pk = crypto_pk_dup_key(service->private_key); d->timestamp = time(NULL); + d->timestamp -= d->timestamp % 3600; /* Round down to nearest hour */ d->intro_nodes = smartlist_new(); /* Support intro protocols 2 and 3. */ d->protocols = (1 << 2) + (1 << 3); |