From 91f6347485a2efe714cf0bc50e4d1fbc2a33c01e Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 27 Apr 2015 22:42:10 +0000 Subject: [PATCH] Assign to the right variable when comparing clients. --- cmd-find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-find.c b/cmd-find.c index a71968a1..14124a36 100644 --- a/cmd-find.c +++ b/cmd-find.c @@ -131,7 +131,7 @@ cmd_find_best_client(struct client **clist, u_int csize) } else { TAILQ_FOREACH(c_loop, &clients, entry) { if (cmd_find_client_better(c_loop, c)) - c_loop = c; + c = c_loop; } } return (c);