Mercurial > dovecot > core-2.2
changeset 22751:482337bf6a60
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: ...
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 08 Nov 2017 16:03:17 +0200 |
parents | 954aab30f28e |
children | c150ff2c806e |
files | src/doveadm/server-connection.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/server-connection.c Wed Nov 08 16:01:11 2017 +0200 +++ b/src/doveadm/server-connection.c Wed Nov 08 16:03:17 2017 +0200 @@ -333,7 +333,7 @@ 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",