|
@@ -19,6 +19,8 @@
|
|
|
#include "feature/rend/rend_intro_point_st.h"
|
|
|
#include "feature/rend/rend_service_descriptor_st.h"
|
|
|
|
|
|
+#include "lib/ctime/di_ops.h"
|
|
|
+
|
|
|
/** Map from service id (as generated by rend_get_service_id) to
|
|
|
* rend_cache_entry_t. */
|
|
|
STATIC strmap_t *rend_cache = NULL;
|
|
@@ -889,8 +891,8 @@ rend_cache_store_v2_desc_as_client(const char *desc,
|
|
|
if (intro_content && intro_size > 0) {
|
|
|
int n_intro_points;
|
|
|
if (rend_data->auth_type != REND_NO_AUTH &&
|
|
|
- !tor_mem_is_zero(rend_data->descriptor_cookie,
|
|
|
- sizeof(rend_data->descriptor_cookie))) {
|
|
|
+ !safe_mem_is_zero(rend_data->descriptor_cookie,
|
|
|
+ sizeof(rend_data->descriptor_cookie))) {
|
|
|
char *ipos_decrypted = NULL;
|
|
|
size_t ipos_decrypted_size;
|
|
|
if (rend_decrypt_introduction_points(&ipos_decrypted,
|