]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: client - Fix connecting to UNIX sockets that don't need authentication
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 8 Nov 2017 14:03:17 +0000 (16:03 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 18 Jan 2018 07:11:04 +0000 (09:11 +0200)
Trying to access doveadm UNIX socket that didn't require authentication
failed with:

Error: doveadm server sent invalid handshake: ...

src/doveadm/server-connection.c

index 29cdcab2cdb847c66ba934f9739b35c6bcc62d01..53a7410defab474ae32b6bc2f4cc6e7fb1651d7d 100644 (file)
@@ -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",