diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-08-28 18:32:31 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2018-08-28 18:32:31 +0300 |
commit | 3890ad25787ad6142acd65d064168ead53e9a289 (patch) | |
tree | 07672746ad57cc070b00037b9ec86afcd23ba5dc /src/test/test_controller.c | |
parent | 103dd68ba8e1d0780dee1ef1c02ccd2ed6cc0542 (diff) | |
download | tor-3890ad25787ad6142acd65d064168ead53e9a289.tar.gz tor-3890ad25787ad6142acd65d064168ead53e9a289.zip |
Stricter HiddenServicePort parsing
Diffstat (limited to 'src/test/test_controller.c')
-rw-r--r-- | src/test/test_controller.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/test_controller.c b/src/test/test_controller.c index d0aa868448..7cdd435faa 100644 --- a/src/test/test_controller.c +++ b/src/test/test_controller.c @@ -346,6 +346,13 @@ test_rend_service_parse_port_config(void *arg) "in hidden service port configuration."); tor_free(err_msg); + /* Wrong target address and port separation */ + cfg = rend_service_parse_port_config("80,127.0.0.1 1234", sep, + &err_msg); + tt_ptr_op(cfg, OP_EQ, NULL); + tt_assert(err_msg); + tor_free(err_msg); + done: rend_service_port_config_free(cfg); tor_free(err_msg); |