diff options
author | irungentoo <irungentoo@gmail.com> | 2014-08-10 14:15:39 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-08-10 14:15:39 -0400 |
commit | 0faa2fbad28c093537b9e32bb1c5be2636e41fbc (patch) | |
tree | 584ea6bd1c6a2925342c1028005431216e829d24 | |
parent | f6955f2f3eab67b48b1e79640dbcc51f3fd64dd5 (diff) |
Fixed bug.
-rw-r--r-- | toxcore/onion_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
73 | nodes[i] = onion_c->path_nodes[rand() % num_nodes]; | 73 | nodes[i] = onion_c->path_nodes[rand() % num_nodes]; |
74 | } | 74 | } |
75 | 75 | ||
76 | return num_nodes; | 76 | return max_num; |
77 | } | 77 | } |
78 | 78 | ||
79 | /* | 79 | /* |