diff options
author | George Kadianakis <desnacked@riseup.net> | 2021-02-08 15:54:48 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2021-02-08 15:58:06 +0200 |
commit | 177b535e7295161db3ac62641173331310ab2ea5 (patch) | |
tree | 63029a3cb9a73f5e33b65a7012b6c25300f7329d /src/test/test_hs_control.c | |
parent | 16915ec5158e1dda97f8ece3edb24370c9cddf46 (diff) | |
download | tor-177b535e7295161db3ac62641173331310ab2ea5.tar.gz tor-177b535e7295161db3ac62641173331310ab2ea5.zip |
Another round of unittest massaging for tor!212.
Diffstat (limited to 'src/test/test_hs_control.c')
-rw-r--r-- | src/test/test_hs_control.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/test_hs_control.c b/src/test/test_hs_control.c index 99c865c8ee..dfc1e5445e 100644 --- a/src/test/test_hs_control.c +++ b/src/test/test_hs_control.c @@ -800,6 +800,8 @@ test_hs_control_add_onion_helper_add_service(void *arg) rend_service_port_config_t *portcfg; smartlist_t *portcfgs; char *address_out_good, *address_out_bad; + hs_service_t *service_good = NULL; + hs_service_t *service_bad = NULL; (void) arg; @@ -831,7 +833,7 @@ test_hs_control_add_onion_helper_add_service(void *arg) add_onion_helper_add_service(HS_VERSION_THREE, &sk_good, portcfgs, 1, 1, REND_V3_AUTH, NULL, list_good, &address_out_good); - hs_service_t *service_good = find_service(global_map, &pk_good); + service_good = find_service(global_map, &pk_good); tt_int_op(smartlist_len(service_good->config.clients), OP_EQ, 1); hs_service_free(service_good); @@ -846,7 +848,7 @@ test_hs_control_add_onion_helper_add_service(void *arg) add_onion_helper_add_service(HS_VERSION_THREE, &sk_bad, portcfgs, 1, 1, REND_V3_AUTH, NULL, list_bad, &address_out_bad); - hs_service_t *service_bad = find_service(global_map, &pk_bad); + service_bad = find_service(global_map, &pk_bad); tt_int_op(smartlist_len(service_bad->config.clients), OP_EQ, 0); |