From 80d5aaa98e49aa0245cd4681acbfae80c7a01dc2 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Wed, 19 Feb 2014 07:14:37 -0500 Subject: [PATCH] Fixed bug in DHT. --- toxcore/DHT.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toxcore/DHT.c b/toxcore/DHT.c index 982b06c44..2b8ec5b59 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c @@ -585,7 +585,9 @@ static int replace_good( Client_data *list, if ((ip_port.ip.family != AF_INET) && (ip_port.ip.family != AF_INET6)) return 1; - //sort_list(list, length, comp_client_id); + /* TODO: eventually remove this.*/ + if (length != LCLIENT_LIST) + sort_list(list, length, comp_client_id); int8_t replace = -1;