summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2015-05-02 11:45:46 +0000
committerYawning Angel <yawning@schwanenlied.me>2015-05-02 11:45:46 +0000
commitd4729524d1d8291f617a1634d804127bac79d96e (patch)
tree44b5e82df7c6e7840087334ebf0a66165dcb26a7
parent411049d0d44963b8d9ec6f96c8dc62a106d6cc30 (diff)
downloadtor-d4729524d1d8291f617a1634d804127bac79d96e.tar.gz
tor-d4729524d1d8291f617a1634d804127bac79d96e.zip
Make `GETINFO hs/client/desc/id/<identifier>` actually work (#14845).
Not in any released version of tor.
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 950e9891e0..8ef3c5c8ee 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1740,7 +1740,7 @@ getinfo_helper_dir(control_connection_t *control_conn,
return -1;
}
- if (rend_cache_lookup_entry(question, -1, &e) > 0) {
+ if (!rend_cache_lookup_entry(question, -1, &e)) {
/* Descriptor found in cache */
*answer = tor_strdup(e->desc);
} else {