]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make `GETINFO hs/client/desc/id/<identifier>` actually work (#14845).
authorYawning Angel <yawning@schwanenlied.me>
Sat, 2 May 2015 11:45:46 +0000 (11:45 +0000)
committerYawning Angel <yawning@schwanenlied.me>
Sat, 2 May 2015 11:45:46 +0000 (11:45 +0000)
Not in any released version of tor.

src/or/control.c

index 950e9891e08acb37c76ab7dd5ef8d1b16e0d0761..8ef3c5c8ee2b5ab48179eb9450a96c4dba688fb2 100644 (file)
@@ -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 {