summaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-07-20 12:55:42 -0400
committerNick Mathewson <nickm@torproject.org>2011-07-21 11:15:25 -0400
commit569fe936b8349082d6f9dcd4e55f7d5758d236be (patch)
treeec9ea9960da15b0f20dd2805f6fea5fa040ed536 /src/or/hibernate.c
parent33e6a3d75054d9dbb945434d9fe5c3f6be162adb (diff)
downloadtor-569fe936b8349082d6f9dcd4e55f7d5758d236be.tar.gz
tor-569fe936b8349082d6f9dcd4e55f7d5758d236be.zip
Move entry-only fields from edge_connection_t to entry_connection_t
Also, refactor the code accordingly.
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index f03433a279..defb7029e2 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -856,7 +856,7 @@ hibernate_go_dormant(time_t now)
connection_edge_end(TO_EDGE_CONN(conn), END_STREAM_REASON_HIBERNATING);
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(TO_EDGE_CONN(conn),
+ connection_mark_unattached_ap(TO_ENTRY_CONN(conn),
END_STREAM_REASON_HIBERNATING);
else
connection_mark_for_close(conn);