From 0faa2fbad28c093537b9e32bb1c5be2636e41fbc Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sun, 10 Aug 2014 14:15:39 -0400 Subject: [PATCH] Fixed bug. --- toxcore/onion_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index f296426f..018526f4 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c @@ -73,7 +73,7 @@ static uint16_t random_nodes_path_onion(const Onion_Client *onion_c, Node_format nodes[i] = onion_c->path_nodes[rand() % num_nodes]; } - return num_nodes; + return max_num; } /*