mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Short-term fix: prevent possible segfault in connection_close_unattached_ap
svn:r3970
This commit is contained in:
parent
5de85f54ba
commit
0d6c9c47b3
@ -38,7 +38,8 @@ connection_close_unattached_ap(connection_t *conn, int endreason) {
|
||||
// be defined yet. -RD
|
||||
if (endreason == END_STREAM_REASON_ALREADY_SOCKS_REPLIED)
|
||||
log_fn(LOG_WARN,"Bug: stream (marked at %s:%d) sending two socks replies?",
|
||||
conn->marked_for_close_file, conn->marked_for_close);
|
||||
conn->marked_for_close_file?conn->marked_for_close_file:"",
|
||||
conn->marked_for_close);
|
||||
|
||||
if (conn->socks_request->command == SOCKS_COMMAND_CONNECT)
|
||||
connection_ap_handshake_socks_reply(conn, NULL, 0, socksreason);
|
||||
|
Loading…
Reference in New Issue
Block a user