diff options
author | Yawning Angel <yawning@schwanenlied.me> | 2015-05-02 11:45:46 +0000 |
---|---|---|
committer | Yawning Angel <yawning@schwanenlied.me> | 2015-05-02 11:45:46 +0000 |
commit | d4729524d1d8291f617a1634d804127bac79d96e (patch) | |
tree | 44b5e82df7c6e7840087334ebf0a66165dcb26a7 /src/or/control.c | |
parent | 411049d0d44963b8d9ec6f96c8dc62a106d6cc30 (diff) | |
download | tor-d4729524d1d8291f617a1634d804127bac79d96e.tar.gz tor-d4729524d1d8291f617a1634d804127bac79d96e.zip |
Make `GETINFO hs/client/desc/id/<identifier>` actually work (#14845).
Not in any released version of tor.
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 2 |
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 { |