summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-02-19 07:14:37 -0500
committerirungentoo <irungentoo@gmail.com>2014-02-19 07:14:37 -0500
commit80d5aaa98e49aa0245cd4681acbfae80c7a01dc2 (patch)
tree19f78e96719411403ef8139ea948a91c21ffbf43
parentbd973152cc7d5b9f8385b6777883ed6ff1a573d7 (diff)
Fixed bug in DHT.
-rw-r--r--toxcore/DHT.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index 982b06c4..2b8ec5b5 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -585,7 +585,9 @@ static int replace_good( Client_data *list,
585 if ((ip_port.ip.family != AF_INET) && (ip_port.ip.family != AF_INET6)) 585 if ((ip_port.ip.family != AF_INET) && (ip_port.ip.family != AF_INET6))
586 return 1; 586 return 1;
587 587
588 //sort_list(list, length, comp_client_id); 588 /* TODO: eventually remove this.*/
589 if (length != LCLIENT_LIST)
590 sort_list(list, length, comp_client_id);
589 591
590 int8_t replace = -1; 592 int8_t replace = -1;
591 593