diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-11-20 11:51:36 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-20 11:51:36 -0500 |
commit | f15cd22bb7c8f4f7009417e50a827c5bcc656807 (patch) | |
tree | ea259a5cede3016ed167c9bf66595bd44af8ca69 /src/or/rendservice.c | |
parent | 126f220071b2313147240b585df6893d21943021 (diff) | |
download | tor-f15cd22bb7c8f4f7009417e50a827c5bcc656807.tar.gz tor-f15cd22bb7c8f4f7009417e50a827c5bcc656807.zip |
Don't build introduction circuits until we know we can build circuits
Patch from akwizgran. Ticket 13447.
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 3fed540e84..353c671550 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -16,6 +16,7 @@ #include "circuituse.h" #include "config.h" #include "directory.h" +#include "main.h" #include "networkstatus.h" #include "nodelist.h" #include "rendclient.h" @@ -3074,6 +3075,9 @@ rend_services_introduce(void) * an intro point to. */ smartlist_t *exclude_nodes = smartlist_new(); + if (!can_complete_circuit) + return; + now = time(NULL); for (i=0; i < smartlist_len(rend_service_list); ++i) { |