diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-20 10:53:07 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-20 10:53:07 -0400 |
commit | 63a42b38b1ea6c9f1899c6a600363a332d438597 (patch) | |
tree | b10ee2dc98b1b21690020c86b9ba965f21739856 /src/or/microdesc.c | |
parent | 66d52b876adeb47b7628bc2752bee3fa15af00a8 (diff) | |
parent | 012068935a632fa3d578cee956b6aed141055379 (diff) | |
download | tor-63a42b38b1ea6c9f1899c6a600363a332d438597.tar.gz tor-63a42b38b1ea6c9f1899c6a600363a332d438597.zip |
Merge remote-tracking branch 'public/unsigned-time_t'
Diffstat (limited to 'src/or/microdesc.c')
-rw-r--r-- | src/or/microdesc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c index d9955c7b49..f81501c519 100644 --- a/src/or/microdesc.c +++ b/src/or/microdesc.c @@ -135,7 +135,7 @@ get_microdesc_cache(void) * ending at <b>eos</b>, and store them in <b>cache</b>. If <b>no_save</b>, * mark them as non-writable to disk. If <b>where</b> is SAVED_IN_CACHE, * leave their bodies as pointers to the mmap'd cache. If where is - * <b>SAVED_NOWHERE</b>, do not allow annotations. If listed_at is positive, + * <b>SAVED_NOWHERE</b>, do not allow annotations. If listed_at is not -1, * set the last_listed field of every microdesc to listed_at. If * requested_digests is non-null, then it contains a list of digests we mean * to allow, so we should reject any non-requested microdesc with a different @@ -155,7 +155,7 @@ microdescs_add_to_cache(microdesc_cache_t *cache, descriptors = microdescs_parse_from_string(s, eos, allow_annotations, copy_body); - if (listed_at > 0) { + if (listed_at != (time_t)-1) { SMARTLIST_FOREACH(descriptors, microdesc_t *, md, md->last_listed = listed_at); } |