]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Comment-only change to connection_get_by_type_addr_port_purpose
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Mon, 7 Dec 2015 05:13:07 +0000 (16:13 +1100)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Mon, 7 Dec 2015 05:13:07 +0000 (16:13 +1100)
connection_get_by_type_addr_port_purpose also ignores connections
that are marked for close.

src/or/connection.c

index 5ac0cb6cc534452f57870195101cc643d469f10b..4e39832709984ca28ea62abb63006857b0191189 100644 (file)
@@ -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,