Fixed bug in DHT.

This commit is contained in:
irungentoo 2014-02-19 07:14:37 -05:00
parent bd973152cc
commit 80d5aaa98e

View File

@ -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;