diff options
author | teor <teor@torproject.org> | 2020-03-20 17:01:06 +1000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-03-20 07:56:26 -0400 |
commit | d4a74021e5ab9dbaf3bb27c0a52e1fd7f8f792ab (patch) | |
tree | d34e4c2215ea3b778ccbc1395dc1d38860dd1f2d /src/feature/relay/relay_config.c | |
parent | c478dc9b2f6c320cc21a10ffed0d7cc245fa933c (diff) | |
download | tor-d4a74021e5ab9dbaf3bb27c0a52e1fd7f8f792ab.tar.gz tor-d4a74021e5ab9dbaf3bb27c0a52e1fd7f8f792ab.zip |
relay/dirauth: Set some output arguments in stubs
And document how some functions set their output arguments.
Fixes bug 33674; bugfix on 0.4.3.1-alpha.
Diffstat (limited to 'src/feature/relay/relay_config.c')
-rw-r--r-- | src/feature/relay/relay_config.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/feature/relay/relay_config.c b/src/feature/relay/relay_config.c index c8b40ae054..3e9961f47e 100644 --- a/src/feature/relay/relay_config.c +++ b/src/feature/relay/relay_config.c @@ -231,8 +231,8 @@ check_server_ports(const smartlist_t *ports, } /** Parse all relay ports from <b>options</b>. On success, add parsed ports to - * <b>ports</b>, and return 0. On failure, set *<b>msg</b> to a description - * of the problem and return -1. + * <b>ports</b>, and return 0. On failure, set *<b>msg</b> to a newly + * allocated string describing the problem, and return -1. **/ int port_parse_ports_relay(or_options_t *options, @@ -334,7 +334,8 @@ port_update_port_set_relay(or_options_t *options, * Legacy validation function, which checks that the current OS is usable in * relay mode, if options is set to a relay mode. * - * Warns about OSes with potential issues. Always returns 0. + * Warns about OSes with potential issues. Does not set *<b>msg</b>. + * Always returns 0. */ int options_validate_relay_os(const or_options_t *old_options, |