diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-25 16:22:36 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-25 16:22:36 +0000 |
commit | 938de88e3bc259535856c1571003ad0c9e00e897 (patch) | |
tree | 1a6bb40244bc8523d8b78287dd97aad6e35f1a79 /src | |
parent | 8884ef44d6543d8eb977eed0fc263887b49a5682 (diff) | |
download | tor-938de88e3bc259535856c1571003ad0c9e00e897.tar.gz tor-938de88e3bc259535856c1571003ad0c9e00e897.zip |
r11942@catbus: nickm | 2007-02-25 11:22:12 -0500
Fix connection_get_by_type_state_rendquery(): This has been bogus for most of 0.1.2.x. Thanks to Karsten Loesing for finding the bug; fixes bug 399.
svn:r9651
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |