mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Check newconn, not conn, before marking newconn for close
This fixes bug 2757. It's a bugfix on 85da676108.
This commit is contained in:
+1
-1
@@ -1178,7 +1178,7 @@ connection_handle_listener_read(connection_t *conn, int new_type)
|
||||
}
|
||||
|
||||
if (connection_init_accepted_conn(newconn, conn->type) < 0) {
|
||||
if (! conn->marked_for_close)
|
||||
if (! newconn->marked_for_close)
|
||||
connection_mark_for_close(newconn);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user