mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 23:21:38 +01:00
Merge remote-tracking branch 'dgoulet/bug23327_032_01'
This commit is contained in:
commit
109cfebca5
3 changed files with 12 additions and 0 deletions
|
@ -1251,3 +1251,11 @@ hs_client_reextend_intro_circuit(origin_circuit_t *circ)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Release all the storage held by the client subsystem. */
|
||||||
|
void
|
||||||
|
hs_client_free_all(void)
|
||||||
|
{
|
||||||
|
/* Purge the hidden service request cache. */
|
||||||
|
hs_purge_last_hid_serv_requests();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,5 +46,7 @@ extend_info_t *hs_client_get_random_intro_from_edge(
|
||||||
|
|
||||||
int hs_client_reextend_intro_circuit(origin_circuit_t *circ);
|
int hs_client_reextend_intro_circuit(origin_circuit_t *circ);
|
||||||
|
|
||||||
|
void hs_client_free_all(void);
|
||||||
|
|
||||||
#endif /* TOR_HS_CLIENT_H */
|
#endif /* TOR_HS_CLIENT_H */
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include "nodelist.h"
|
#include "nodelist.h"
|
||||||
#include "hs_cache.h"
|
#include "hs_cache.h"
|
||||||
#include "hs_common.h"
|
#include "hs_common.h"
|
||||||
|
#include "hs_client.h"
|
||||||
#include "hs_ident.h"
|
#include "hs_ident.h"
|
||||||
#include "hs_service.h"
|
#include "hs_service.h"
|
||||||
#include "policies.h"
|
#include "policies.h"
|
||||||
|
@ -1704,6 +1705,7 @@ hs_free_all(void)
|
||||||
hs_circuitmap_free_all();
|
hs_circuitmap_free_all();
|
||||||
hs_service_free_all();
|
hs_service_free_all();
|
||||||
hs_cache_free_all();
|
hs_cache_free_all();
|
||||||
|
hs_client_free_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For the given origin circuit circ, decrement the number of rendezvous
|
/* For the given origin circuit circ, decrement the number of rendezvous
|
||||||
|
|
Loading…
Add table
Reference in a new issue