|
@@ -88,7 +88,7 @@ test_dir_handle_get_bad_request(void *data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -117,7 +117,7 @@ test_dir_handle_get_v1_command_not_found(void *data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -164,7 +164,7 @@ test_dir_handle_get_v1_command(void *data)
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
UNMOCK(get_dirportfrontpage);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
}
|
|
@@ -190,7 +190,7 @@ test_dir_handle_get_not_found(void *data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -225,7 +225,7 @@ test_dir_handle_get_robots_txt(void *data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
}
|
|
@@ -254,7 +254,7 @@ test_dir_handle_get_rendezvous2_not_found_if_not_encrypted(void *data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -282,7 +282,7 @@ test_dir_handle_get_rendezvous2_on_encrypted_conn_with_invalid_desc_id(
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -315,7 +315,7 @@ test_dir_handle_get_rendezvous2_on_encrypted_conn_not_well_formed(void *data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -344,7 +344,7 @@ test_dir_handle_get_rendezvous2_not_found(void *data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
rend_cache_free_all();
|
|
|
}
|
|
@@ -424,7 +424,7 @@ test_dir_handle_get_rendezvous2_on_encrypted_conn_success(void *data)
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
NS_UNMOCK(router_get_my_routerinfo);
|
|
|
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
rend_encoded_v2_service_descriptor_free(desc_holder);
|
|
@@ -457,7 +457,7 @@ test_dir_handle_get_micro_d_not_found(void *data)
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -541,7 +541,7 @@ test_dir_handle_get_micro_d(void *data)
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
|
|
|
or_options_free(mock_options); mock_options = NULL;
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
smartlist_free(list);
|
|
@@ -595,7 +595,7 @@ test_dir_handle_get_micro_d_server_busy(void *data)
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
|
|
|
or_options_free(mock_options); mock_options = NULL;
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
smartlist_free(list);
|
|
|
microdesc_free_all();
|
|
@@ -632,7 +632,7 @@ test_dir_handle_get_networkstatus_bridges_not_found_without_auth(void *data)
|
|
|
UNMOCK(get_options);
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
or_options_free(mock_options); mock_options = NULL;
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -672,7 +672,7 @@ test_dir_handle_get_networkstatus_bridges(void *data)
|
|
|
UNMOCK(get_options);
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
or_options_free(mock_options); mock_options = NULL;
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -709,7 +709,7 @@ test_dir_handle_get_networkstatus_bridges_not_found_wrong_auth(void *data)
|
|
|
UNMOCK(get_options);
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
or_options_free(mock_options); mock_options = NULL;
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -737,7 +737,7 @@ test_dir_handle_get_server_descriptors_not_found(void* data)
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
or_options_free(mock_options); mock_options = NULL;
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -798,7 +798,7 @@ test_dir_handle_get_server_descriptors_all(void* data)
|
|
|
done:
|
|
|
NS_UNMOCK(router_get_my_routerinfo);
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
|
|
@@ -902,7 +902,7 @@ test_dir_handle_get_server_descriptors_authority(void* data)
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
tor_free(mock_routerinfo->cache_info.signed_descriptor_body);
|
|
|
tor_free(mock_routerinfo);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
crypto_pk_free(identity_pkey);
|
|
@@ -974,7 +974,7 @@ test_dir_handle_get_server_descriptors_fp(void* data)
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
tor_free(mock_routerinfo->cache_info.signed_descriptor_body);
|
|
|
tor_free(mock_routerinfo);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
crypto_pk_free(identity_pkey);
|
|
@@ -1038,7 +1038,7 @@ test_dir_handle_get_server_descriptors_d(void* data)
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
tor_free(mock_routerinfo);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
crypto_pk_free(identity_pkey);
|
|
@@ -1094,7 +1094,7 @@ test_dir_handle_get_server_descriptors_busy(void* data)
|
|
|
UNMOCK(get_options);
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
tor_free(mock_routerinfo);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
crypto_pk_free(identity_pkey);
|
|
|
|
|
@@ -1125,7 +1125,7 @@ test_dir_handle_get_server_keys_bad_req(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -1151,7 +1151,7 @@ test_dir_handle_get_server_keys_all_not_found(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -1210,7 +1210,7 @@ test_dir_handle_get_server_keys_all(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
|
|
@@ -1240,7 +1240,7 @@ test_dir_handle_get_server_keys_authority_not_found(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -1288,7 +1288,7 @@ test_dir_handle_get_server_keys_authority(void* data)
|
|
|
done:
|
|
|
UNMOCK(get_my_v3_authority_cert);
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
authority_cert_free(mock_cert); mock_cert = NULL;
|
|
@@ -1316,7 +1316,7 @@ test_dir_handle_get_server_keys_fp_not_found(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -1370,7 +1370,7 @@ test_dir_handle_get_server_keys_fp(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
clear_dir_servers();
|
|
@@ -1399,7 +1399,7 @@ test_dir_handle_get_server_keys_sk_not_found(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -1444,7 +1444,7 @@ test_dir_handle_get_server_keys_sk(void* data)
|
|
|
done:
|
|
|
UNMOCK(get_my_v3_authority_cert);
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
authority_cert_free(mock_cert); mock_cert = NULL;
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
@@ -1472,7 +1472,7 @@ test_dir_handle_get_server_keys_fpsk_not_found(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -1529,7 +1529,7 @@ test_dir_handle_get_server_keys_fpsk(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
|
|
@@ -1583,7 +1583,7 @@ test_dir_handle_get_server_keys_busy(void* data)
|
|
|
done:
|
|
|
UNMOCK(get_options);
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
or_options_free(mock_options); mock_options = NULL;
|
|
|
|
|
@@ -1649,7 +1649,7 @@ test_dir_handle_get_status_vote_current_consensus_ns_not_enough_sigs(void* d)
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
UNMOCK(get_options);
|
|
|
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(stats);
|
|
|
smartlist_free(mock_ns_val->voters);
|
|
@@ -1690,7 +1690,7 @@ test_dir_handle_get_status_vote_current_consensus_ns_not_found(void* data)
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
UNMOCK(get_options);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(stats);
|
|
|
or_options_free(mock_options); mock_options = NULL;
|
|
@@ -1764,7 +1764,7 @@ test_dir_handle_get_status_vote_current_consensus_too_old(void *data)
|
|
|
UNMOCK(networkstatus_get_latest_consensus_by_flavor);
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
UNMOCK(get_options);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(mock_ns_val);
|
|
|
or_options_free(mock_options); mock_options = NULL;
|
|
@@ -1825,7 +1825,7 @@ status_vote_current_consensus_ns_test(char **header, char **body,
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
}
|
|
|
|
|
|
static void
|
|
@@ -1948,7 +1948,7 @@ test_dir_handle_get_status_vote_current_not_found(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -1971,7 +1971,7 @@ status_vote_current_d_test(char **header, char **body, size_t *body_l)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
}
|
|
|
|
|
|
static void
|
|
@@ -1991,7 +1991,7 @@ status_vote_next_d_test(char **header, char **body, size_t *body_l)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
}
|
|
|
|
|
|
static void
|
|
@@ -2116,7 +2116,7 @@ test_dir_handle_get_status_vote_next_not_found(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -2135,7 +2135,7 @@ status_vote_next_consensus_test(char **header, char **body, size_t *body_used)
|
|
|
body, body_used, 18, 0);
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
}
|
|
|
|
|
|
static void
|
|
@@ -2175,7 +2175,7 @@ test_dir_handle_get_status_vote_current_authority_not_found(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -2199,7 +2199,7 @@ test_dir_handle_get_status_vote_next_authority_not_found(void* data)
|
|
|
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
}
|
|
|
|
|
@@ -2281,7 +2281,7 @@ status_vote_next_consensus_signatures_test(char **header, char **body,
|
|
|
body, body_used, 22, 0);
|
|
|
|
|
|
done:
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
}
|
|
|
|
|
@@ -2429,7 +2429,7 @@ test_dir_handle_get_status_vote_next_authority(void* data)
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
UNMOCK(get_my_v3_authority_cert);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
authority_cert_free(mock_cert); mock_cert = NULL;
|
|
@@ -2511,7 +2511,7 @@ test_dir_handle_get_status_vote_current_authority(void* data)
|
|
|
done:
|
|
|
UNMOCK(connection_write_to_buf_impl_);
|
|
|
UNMOCK(get_my_v3_authority_cert);
|
|
|
- connection_free_(TO_CONN(conn));
|
|
|
+ connection_free_minimal(TO_CONN(conn));
|
|
|
tor_free(header);
|
|
|
tor_free(body);
|
|
|
authority_cert_free(mock_cert); mock_cert = NULL;
|