summaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-11-07 11:48:02 -0500
committerNick Mathewson <nickm@torproject.org>2011-11-07 11:48:02 -0500
commitceebc8283f4ba8fbc19c0b788d855855f5bbdbb8 (patch)
tree10e1e47ef5ca7a675ede6b64cc4f39123a6d8029 /src/or/rendclient.c
parent21dd6eae9eb6904586fc0f809a257943b85314be (diff)
parentca282e53263de564774944a8aa93e88271983461 (diff)
downloadtor-ceebc8283f4ba8fbc19c0b788d855855f5bbdbb8.tar.gz
tor-ceebc8283f4ba8fbc19c0b788d855855f5bbdbb8.zip
Merge remote-tracking branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 1038378de1..13475b5a97 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -1079,8 +1079,13 @@ rend_client_get_random_intro_impl(const rend_cache_entry_t *entry,
int
rend_client_any_intro_points_usable(const rend_cache_entry_t *entry)
{
- return rend_client_get_random_intro_impl(
- entry, get_options()->StrictNodes, 0) != NULL;
+ extend_info_t *extend_info =
+ rend_client_get_random_intro_impl(entry, get_options()->StrictNodes, 0);
+
+ int rv = (extend_info != NULL);
+
+ extend_info_free(extend_info);
+ return rv;
}
/** Client-side authorizations for hidden services; map of onion address to