summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/or/connection.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6cb36cb443..1d8c09251e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -59,6 +59,8 @@ Changes in version 0.1.2.8-rc - 2007-02-??
DNS request.
- Build with recent libevents on platforms that do not define the
nonstandard types "u_int8_t" and friends.
+ - Correctly detect whether hidden service descriptor downloads are
+ in-progress. (Fixes bug 399.)
o Minor features (controller):
- Warn the user when an application uses the obsolete binary v0
diff --git a/src/or/connection.c b/src/or/connection.c
index 29d27c0437..b8aa3df981 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -2062,10 +2062,10 @@ connection_get_by_type_state_rendquery(int type, int state,
!conn->marked_for_close &&
(!state || state == conn->state)) {
if (type == CONN_TYPE_DIR &&
- rend_cmp_service_ids(rendquery, TO_DIR_CONN(conn)->rend_query))
+ !rend_cmp_service_ids(rendquery, TO_DIR_CONN(conn)->rend_query))
return conn;
else if (CONN_IS_EDGE(conn) &&
- rend_cmp_service_ids(rendquery, TO_EDGE_CONN(conn)->rend_query))
+ !rend_cmp_service_ids(rendquery, TO_EDGE_CONN(conn)->rend_query))
return conn;
}
}