aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-04-01 16:04:45 +0000
committerNick Mathewson <nickm@torproject.org>2005-04-01 16:04:45 +0000
commit0d6c9c47b31fe65c0b52b9a71e2b57824a1f9ee1 (patch)
tree5752773ab1b120bf76f33bbcd3db55a28733c613
parent5de85f54ba0c0d21f99cc1e1053da6076eeae4e4 (diff)
downloadtor-0d6c9c47b31fe65c0b52b9a71e2b57824a1f9ee1.tar
tor-0d6c9c47b31fe65c0b52b9a71e2b57824a1f9ee1.tar.gz
Short-term fix: prevent possible segfault in connection_close_unattached_ap
svn:r3970
-rw-r--r--src/or/connection_edge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index d85e17b32..f381f432e 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -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);