diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-08-03 08:55:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-08-03 08:55:17 -0400 |
commit | efc969e86214fc53d3387c646ef0eab80ce15981 (patch) | |
tree | bcf64d7b1842f0741826c97ff63e8dae2e140b4d /src/feature/dirparse | |
parent | d1fda62d11139830b0d81d56d0dfd372237d0be6 (diff) | |
download | tor-efc969e86214fc53d3387c646ef0eab80ce15981.tar.gz tor-efc969e86214fc53d3387c646ef0eab80ce15981.zip |
Rename protover_contains_long_protocol_names to protover_list_is_invalid
This is an automated commit, generated by this command:
./scripts/maint/rename_c_identifier.py \
protover_contains_long_protocol_names protover_list_is_invalid
Diffstat (limited to 'src/feature/dirparse')
-rw-r--r-- | src/feature/dirparse/ns_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/dirparse/ns_parse.c b/src/feature/dirparse/ns_parse.c index 726da8a64c..927870c4aa 100644 --- a/src/feature/dirparse/ns_parse.c +++ b/src/feature/dirparse/ns_parse.c @@ -468,7 +468,7 @@ routerstatus_parse_entry_from_string(memarea_t *area, } // If the protover line is malformed, reject this routerstatus. - if (protocols && protover_contains_long_protocol_names(protocols)) { + if (protocols && protover_list_is_invalid(protocols)) { goto err; } summarize_protover_flags(&rs->pv, protocols, version); @@ -1076,7 +1076,7 @@ dup_protocols_string(smartlist_t *tokens, bool *error, directory_keyword kw) directory_token_t *tok = find_opt_by_keyword(tokens, kw); if (!tok) return NULL; - if (protover_contains_long_protocol_names(tok->args[0])) + if (protover_list_is_invalid(tok->args[0])) *error = true; return tor_strdup(tok->args[0]); } |