[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Make `GETINFO hs/client/desc/id/<identifier>` actually work (#14845).
commit d4729524d1d8291f617a1634d804127bac79d96e
Author: Yawning Angel <yawning@xxxxxxxxxxxxxxx>
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 {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits