summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-07 16:13:07 +1100
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-07 16:13:07 +1100
commit329aa59e432f9f1796315b5f54692bfeff295c47 (patch)
treecf8b46c63c360c45e01af652d4f092166fa299ec /src/or
parentb7525c39bff1f43b1437960d7030693942e33274 (diff)
downloadtor-329aa59e432f9f1796315b5f54692bfeff295c47.tar.gz
tor-329aa59e432f9f1796315b5f54692bfeff295c47.zip
Comment-only change to connection_get_by_type_addr_port_purpose
connection_get_by_type_addr_port_purpose also ignores connections that are marked for close.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 5ac0cb6cc5..4e39832709 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -4215,7 +4215,8 @@ connection_write_to_buf_impl_,(const char *string, size_t len,
}
/** Return a connection with given type, address, port, and purpose;
- * or NULL if no such connection exists. */
+ * or NULL if no such connection exists (or if all such connections are marked
+ * for close). */
connection_t *
connection_get_by_type_addr_port_purpose(int type,
const tor_addr_t *addr, uint16_t port,