Explorar el Código

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.
teor (Tim Wilson-Brown) hace 8 años
padre
commit
329aa59e43
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/or/connection.c

+ 2 - 1
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,