[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Comment-only change to connection_get_by_type_addr_port_purpose



commit 329aa59e432f9f1796315b5f54692bfeff295c47
Author: teor (Tim Wilson-Brown) <teor2345@xxxxxxxxx>
Date:   Mon Dec 7 16:13:07 2015 +1100

    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.
---
 src/or/connection.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/or/connection.c b/src/or/connection.c
index 5ac0cb6..4e39832 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,



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits