diff options
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r-- | src/or/hibernate.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c index 5f1131da71..a1aca0327a 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -786,11 +786,12 @@ hibernate_go_dormant(time_t now) (conn = connection_get_by_type(CONN_TYPE_AP)) || (conn = connection_get_by_type(CONN_TYPE_EXIT))) { if (CONN_IS_EDGE(conn)) - connection_edge_end(conn, END_STREAM_REASON_HIBERNATING, - conn->cpath_layer); + connection_edge_end(TO_EDGE_CONN(conn), END_STREAM_REASON_HIBERNATING, + TO_EDGE_CONN(conn)->cpath_layer); log_info(LD_NET,"Closing conn type %d", conn->type); if (conn->type == CONN_TYPE_AP) /* send socks failure if needed */ - connection_mark_unattached_ap(conn, END_STREAM_REASON_HIBERNATING); + connection_mark_unattached_ap(TO_EDGE_CONN(conn), + END_STREAM_REASON_HIBERNATING); else connection_mark_for_close(conn); } |