From: Timo Sirainen Date: Mon, 24 Oct 2016 17:20:09 +0000 (+0300) Subject: director: USER-MOVE didn't handle non-hash username correctly. X-Git-Tag: 2.3.0.rc1~2786 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60835f193436504acd13acc09928c4b4ff6934d8;p=thirdparty%2Fdovecot%2Fcore.git director: USER-MOVE didn't handle non-hash username correctly. The entire command line was being hashed instead of just the username. --- diff --git a/src/director/doveadm-connection.c b/src/director/doveadm-connection.c index f179c693e3..dcd60fb0db 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");