]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Revert "Avoid a double-mark in connection_or_close_connection_cb"
authorNick Mathewson <nickm@torproject.org>
Wed, 7 Dec 2011 00:49:20 +0000 (19:49 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 7 Dec 2011 00:49:20 +0000 (19:49 -0500)
This reverts commit 633071eb3bcf2c4106e93de28d727594bd23b1db.

src/or/connection_or.c

index 82297c33167faa8e65a57eafe49d9f3a0aa8f6e3..44f559c7440c65f910d68d57155251aa6722443f 100644 (file)
@@ -1162,12 +1162,10 @@ connection_or_tls_renegotiated_cb(tor_tls_t *tls, void *_conn)
 static void
 connection_or_close_connection_cb(void *_conn)
 {
-  or_connection_t *or_conn = _conn;
-  connection_t *conn = TO_CONN(or_conn);
+  or_connection_t *conn = _conn;
 
-  connection_stop_reading(conn);
-  if (!conn->marked_for_close)
-    connection_mark_for_close(conn);
+  connection_stop_reading(TO_CONN(conn));
+  connection_mark_for_close(TO_CONN(conn));
 }
 
 /** Move forward with the tls handshake. If it finishes, hand