summaryrefslogtreecommitdiffstats
path: root/cmd-find.c
diff options
context:
space:
mode:
authornicm <nicm>2015-04-27 22:42:10 +0000
committernicm <nicm>2015-04-27 22:42:10 +0000
commit91f6347485a2efe714cf0bc50e4d1fbc2a33c01e (patch)
treeef92082831d92ce15cf8f96fb78b1360d1c29aa0 /cmd-find.c
parent95195f52584565483bf9850840f6d81cd88bf9b2 (diff)
Assign to the right variable when comparing clients.
Diffstat (limited to 'cmd-find.c')
-rw-r--r--cmd-find.c2
1 files changed, 1 insertions, 1 deletions
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);