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; } /*