From 9bf84e4140fe32e6a556d6156db7ce8b1e663ff4 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 24 Oct 2016 20:20:09 +0300 Subject: [PATCH] director: USER-MOVE didn't handle non-hash username correctly. The entire command line was being hashed instead of just the username. --- src/director/doveadm-connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/director/doveadm-connection.c b/src/director/doveadm-connection.c index 926f4ebce4..27012dc197 100644 --- a/src/director/doveadm-connection.c +++ b/src/director/doveadm-connection.c @@ -576,7 +576,7 @@ doveadm_cmd_user_move(struct doveadm_connection *conn, const char *line) } if (str_to_uint(args[0], &username_hash) < 0) - username_hash = user_directory_get_username_hash(conn->dir->users, line); + username_hash = user_directory_get_username_hash(conn->dir->users, args[0]); user = user_directory_lookup(conn->dir->users, username_hash); if (user != NULL && user->kill_state != USER_KILL_STATE_NONE) { o_stream_nsend_str(conn->output, "TRYAGAIN\n"); -- 2.47.3