diff options
Diffstat (limited to 'src/or/onion.c')
-rw-r--r-- | src/or/onion.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index c5431e0fdc..9def03cd27 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -10,8 +10,6 @@ #include "or.h" -extern or_options_t options; /**< command-line and config-file options */ - struct onion_queue_t { circuit_t *circ; struct onion_queue_t *next; @@ -44,7 +42,7 @@ int onion_pending_add(circuit_t *circ) { tor_assert(ol_list); tor_assert(!ol_tail->next); - if(ol_length >= options.MaxOnionsPending) { + if(ol_length >= get_options()->MaxOnionsPending) { log_fn(LOG_WARN,"Already have %d onions queued. Closing.", ol_length); tor_free(tmp); return -1; |