From: Yawning Angel Date: Sat, 2 May 2015 11:45:46 +0000 (+0000) Subject: Make `GETINFO hs/client/desc/id/` actually work (#14845). X-Git-Tag: tor-0.2.7.1-alpha~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4729524d1d8291f617a1634d804127bac79d96e;p=thirdparty%2Ftor.git Make `GETINFO hs/client/desc/id/` actually work (#14845). Not in any released version of tor. --- 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 {