소스 검색

Make `GETINFO hs/client/desc/id/<identifier>` actually work (#14845).

Not in any released version of tor.
Yawning Angel 9 년 전
부모
커밋
d4729524d1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/control.c

+ 1 - 1
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 {