Parcourir la source

Make a return value explicitly ignored.

This might make coverity happy
Nick Mathewson il y a 9 ans
Parent
commit
b64eb6c47c
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/or/rendclient.c

+ 2 - 1
src/or/rendclient.c

@@ -1229,7 +1229,8 @@ void
 rend_client_note_connection_attempt_ended(const char *onion_address)
 {
   rend_cache_entry_t *cache_entry = NULL;
-  rend_cache_lookup_entry(onion_address, -1, &cache_entry);
+  /* Ignore return value; we find an entry, or we don't. */
+  (void) rend_cache_lookup_entry(onion_address, -1, &cache_entry);
 
   log_info(LD_REND, "Connection attempt for %s has ended; "
            "cleaning up temporary state.",