[tor-commits] [tor/master] Make `GETINFO hs/client/desc/id/<identifier>` actually work (#14845).

nickm at torproject.org nickm at torproject.org
Mon May 4 13:29:20 UTC 2015


commit d4729524d1d8291f617a1634d804127bac79d96e
Author: Yawning Angel <yawning at schwanenlied.me>
Date:   Sat May 2 11:45:46 2015 +0000

    Make `GETINFO hs/client/desc/id/<identifier>` actually work (#14845).
    
    Not in any released version of tor.
---
 src/or/control.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/control.c b/src/or/control.c
index 950e989..8ef3c5c 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 {



More information about the tor-commits mailing list