[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/maint-0.2.2] Remove an extraneous "if" in the 4424 fix
commit 02d89c5c663ec5370386de0173accaa66c1e69f5
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Mon Nov 7 11:46:51 2011 -0500
Remove an extraneous "if" in the 4424 fix
---
src/or/rendclient.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 3dfca58..f951dad 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -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;
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits