]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove an extraneous "if" in the 4424 fix
authorNick Mathewson <nickm@torproject.org>
Mon, 7 Nov 2011 16:46:51 +0000 (11:46 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 7 Nov 2011 16:46:51 +0000 (11:46 -0500)
src/or/rendclient.c

index 3dfca58f860997ba924f0905f1f7ceefb787c670..f951dad611e6d8e57b399eddd625783f591ecca0 100644 (file)
@@ -954,11 +954,10 @@ rend_client_any_intro_points_usable(const rend_cache_entry_t *entry)
 {
   extend_info_t *extend_info =
     rend_client_get_random_intro_impl(entry, get_options()->StrictNodes, 0);
-  int rv = extend_info != NULL;
 
-  if (extend_info != NULL)
-    extend_info_free(extend_info);
+  int rv = (extend_info != NULL);
 
+  extend_info_free(extend_info);
   return rv;
 }