]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: client - Cleanup: Remove unnecessary stream_errno check
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 8 Nov 2017 12:39:06 +0000 (14:39 +0200)
committerTimo Sirainen <tss@dovecot.fi>
Wed, 15 Nov 2017 20:24:08 +0000 (22:24 +0200)
src/doveadm/server-connection.c

index 13c1d5b95a52f1270739ba4c9bb3eef2a7896067..242080a5201f8bbfb8b409e90526a57b876ea672 100644 (file)
@@ -355,7 +355,8 @@ static void server_connection_input(struct server_connection *conn)
 
        while (!conn->authenticated) {
                if ((line = i_stream_next_line(conn->input)) == NULL) {
-                       if (conn->input->eof || conn->input->stream_errno != 0) {
+                       if (conn->input->eof) {
+                               /* we'll also get here if the line is too long */
                                server_log_disconnect_error(conn);
                                server_connection_destroy(&conn);
                        }