aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-05-12 11:39:46 -0400
committerNick Mathewson <nickm@torproject.org>2017-07-07 11:12:26 -0400
commitf8dc1164ba86099d4106dffa84435366bf6cdcd6 (patch)
tree724222dbf2f8d503a97678d36f8494b1a7efa3fa /src/or/connection.c
parent90046a09dd95c789e28f63c320c1c16e58ecf57a (diff)
downloadtor-f8dc1164ba86099d4106dffa84435366bf6cdcd6.tar.gz
tor-f8dc1164ba86099d4106dffa84435366bf6cdcd6.zip
prop224: Add connection and circuit identifier object
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 4e890497e9..5c65e886c0 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -84,6 +84,7 @@
#include "geoip.h"
#include "main.h"
#include "hs_common.h"
+#include "hs_ident.h"
#include "nodelist.h"
#include "policies.h"
#include "reasons.h"
@@ -605,6 +606,7 @@ connection_free_(connection_t *conn)
}
if (CONN_IS_EDGE(conn)) {
rend_data_free(TO_EDGE_CONN(conn)->rend_data);
+ hs_ident_edge_conn_free(TO_EDGE_CONN(conn)->hs_ident);
}
if (conn->type == CONN_TYPE_CONTROL) {
control_connection_t *control_conn = TO_CONTROL_CONN(conn);
@@ -636,6 +638,7 @@ connection_free_(connection_t *conn)
}
rend_data_free(dir_conn->rend_data);
+ hs_ident_dir_conn_free(dir_conn->hs_ident);
if (dir_conn->guard_state) {
/* Cancel before freeing, if it's still there. */
entry_guard_cancel(&dir_conn->guard_state);