diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-03-24 10:19:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-03-24 10:31:13 -0400 |
commit | ebb826f4a15c90d480bb5384facc9d05e13505ab (patch) | |
tree | 891ca04dfaf7ad0e588809c3c4a9e3013b93386c /src/app/config/config.c | |
parent | db14801b04dc27760c71ff6567c59c222459bfe6 (diff) | |
download | tor-ebb826f4a15c90d480bb5384facc9d05e13505ab.tar.gz tor-ebb826f4a15c90d480bb5384facc9d05e13505ab.zip |
Add an extra prop330 test, and clarifying comments.
This test makes sure that we reject "upload=" URLs with bad IP
addresses.
Also, add a warning when we can't parse the address.
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r-- | src/app/config/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index 395da5e66a..547662300d 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -5500,6 +5500,8 @@ parse_dirauth_dirport(dir_server_t *ds, const char *flag) &dirport.addr, &dirport.port, -1); if (ds != NULL && rv == 0) { trusted_dir_server_add_dirport(ds, usage, &dirport); + } else if (rv == -1) { + log_warn(LD_CONFIG, "Unable to parse address in authority flag %s",flag); } tor_free(addr_string); |