|
@@ -2437,7 +2437,7 @@ connection_get_by_type_state(int type, int state)
|
|
|
|
|
|
* to <b>rendquery</b>, and that is not marked for close. If state
|
|
|
* is non-zero, conn must be of that state too. If rendversion is
|
|
|
- * nonnegative, conn must fetch that rendversion, too.
|
|
|
+ * nonnegative, conn must be fetching that rendversion, too.
|
|
|
*/
|
|
|
connection_t *
|
|
|
connection_get_by_type_state_rendquery(int type, int state,
|
|
@@ -2456,7 +2456,7 @@ connection_get_by_type_state_rendquery(int type, int state,
|
|
|
(!state || state == conn->state)) {
|
|
|
if (type == CONN_TYPE_DIR &&
|
|
|
(rendversion < 0 ||
|
|
|
- rendversion == TO_DIR_CONN(conn)->rend_version) &&
|
|
|
+ rendversion == TO_DIR_CONN(conn)->rend_version) &&
|
|
|
!rend_cmp_service_ids(rendquery, TO_DIR_CONN(conn)->rend_query))
|
|
|
return conn;
|
|
|
else if (CONN_IS_EDGE(conn) &&
|