From 39c86a083e4f5c2110b53e4877aaf8693adbe3f5 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 8 Nov 2017 16:03:17 +0200 Subject: [PATCH] doveadm: client - Fix connecting to UNIX sockets that don't need authentication Trying to access doveadm UNIX socket that didn't require authentication failed with: Error: doveadm server sent invalid handshake: ... --- src/doveadm/server-connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doveadm/server-connection.c b/src/doveadm/server-connection.c index 29cdcab2cd..53a7410def 100644 --- a/src/doveadm/server-connection.c +++ b/src/doveadm/server-connection.c @@ -333,7 +333,7 @@ static void server_connection_input(struct server_connection *conn) if (conn->to_input != NULL) timeout_remove(&conn->to_input); - if (!conn->authenticate_sent || !conn->authenticated) { + if (!conn->authenticated) { while((line = i_stream_read_next_line(conn->input)) != NULL) { if (strncmp(line, "VERSION\t", 8) == 0) { if (!version_string_verify_full(line, "doveadm-client", -- 2.47.3