diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-10-13 14:15:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-10-13 14:31:11 -0400 |
commit | 500c4063643dd20e0197ad71ab1bebcf251850a1 (patch) | |
tree | b24b681376c67cae2a2822dde7f509c7db686c99 /src | |
parent | 223d354e344ad3d07766b7c19e1841342c270ad2 (diff) | |
download | tor-500c4063643dd20e0197ad71ab1bebcf251850a1.tar.gz tor-500c4063643dd20e0197ad71ab1bebcf251850a1.zip |
Note that parse-list functions may add duplicate 'invalid' entries.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerparse.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index c7ebba2729..2858c4ce37 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -912,7 +912,8 @@ find_start_of_next_router_or_extrainfo(const char **s_ptr, * isn't SAVED_NOWHERE, remember the offset of each descriptor. * * Returns 0 on success and -1 on failure. Adds a digest to - * <b>invalid_digests_out</b> for every entry that was unparseable or invalid. + * <b>invalid_digests_out</b> for every entry that was unparseable or + * invalid. (This may cause duplicate entries.) */ int router_parse_list_from_string(const char **s, const char *eos, @@ -4040,7 +4041,7 @@ find_start_of_next_microdesc(const char *s, const char *eos) * Return all newly parsed microdescriptors in a newly allocated * smartlist_t. If <b>invalid_disgests_out</b> is provided, add a SHA256 * microdesc digest to it for every microdesc that we found to be badly - * formed. */ + * formed. (This may cause duplicates) */ smartlist_t * microdescs_parse_from_string(const char *s, const char *eos, int allow_annotations, |