diff options
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 52c123c8d..9c591d497 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -212,6 +212,7 @@ connection_edge_end(edge_connection_t *conn, uint8_t reason) char payload[RELAY_PAYLOAD_SIZE]; size_t payload_len=1; circuit_t *circ; + uint8_t control_reason = reason; if (conn->edge_has_sent_end) { log_warn(LD_BUG,"(Harmless.) Calling connection_edge_end (reason %d) " @@ -260,7 +261,7 @@ connection_edge_end(edge_connection_t *conn, uint8_t reason) } conn->edge_has_sent_end = 1; - conn->end_reason = reason; + conn->end_reason = control_reason; return 0; } |