diff options
author | David Goulet <dgoulet@torproject.org> | 2017-08-31 08:29:09 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-08-31 08:29:09 -0400 |
commit | 651629cbdf5ae1af6702d282516bebc124f8742a (patch) | |
tree | ea308299ab7ffd7fc15c78c3f61347f5029340db /src/test/test_options.c | |
parent | 209bfe715cc8c1c59b2578c406749a0d4a5bd8cb (diff) | |
download | tor-651629cbdf5ae1af6702d282516bebc124f8742a.tar.gz tor-651629cbdf5ae1af6702d282516bebc124f8742a.zip |
config: Make parse_outbound_addresses() return failures
The function was never returning an error code on failure to parse the
OutboundAddress* options.
In the process, it was making our test_options_validate__outbound_addresses()
not test the right thing.
Fixes #23366
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r-- | src/test/test_options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c index 5f35c47f79..92e6982823 100644 --- a/src/test/test_options.c +++ b/src/test/test_options.c @@ -528,6 +528,8 @@ test_options_validate__outbound_addresses(void *ignored) ret = options_validate(tdata->old_opt, tdata->opt, tdata->def_opt, 0, &msg); tt_int_op(ret, OP_EQ, -1); + tt_str_op(msg, OP_EQ, "Multiple outbound bind addresses configured: " + "xxyy!!!sdfaf"); done: free_options_test_data(tdata); |