From 329aa59e432f9f1796315b5f54692bfeff295c47 Mon Sep 17 00:00:00 2001 From: "teor (Tim Wilson-Brown)" Date: Mon, 7 Dec 2015 16:13:07 +1100 Subject: [PATCH] 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 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, -- 2.47.3