aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-11-07 11:46:51 -0500
committerNick Mathewson <nickm@torproject.org>2011-11-07 11:46:51 -0500
commit02d89c5c663ec5370386de0173accaa66c1e69f5 (patch)
tree9766b7a2d8a8a2f25d79892c95d7c962c7b7f9a5 /src/or/rendclient.c
parent65a0d7e7ef03cc2390cad81264e451e59206842b (diff)
downloadtor-02d89c5c663ec5370386de0173accaa66c1e69f5.tar.gz
tor-02d89c5c663ec5370386de0173accaa66c1e69f5.zip
Remove an extraneous "if" in the 4424 fix
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 3dfca58f86..f951dad611 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;
}