From: Timo Sirainen Date: Wed, 8 Nov 2017 12:40:14 +0000 (+0200) Subject: doveadm: client - Cleanup: Simplify the input loop X-Git-Tag: 2.3.0.rc1~449 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8f02c99e2bcb558b92a2d8038d3b6462f6b5835;p=thirdparty%2Fdovecot%2Fcore.git doveadm: client - Cleanup: Simplify the input loop --- diff --git a/src/doveadm/server-connection.c b/src/doveadm/server-connection.c index 242080a520..b8a0263eae 100644 --- a/src/doveadm/server-connection.c +++ b/src/doveadm/server-connection.c @@ -376,13 +376,10 @@ static void server_connection_input(struct server_connection *conn) return; } conn->version_received = TRUE; - continue; - } - if (strcmp(line, "+") == 0) { + } else if (strcmp(line, "+") == 0) { if (conn->minor > 0) server_connection_start_multiplex(conn); server_connection_authenticated(conn); - break; } else if (strcmp(line, "-") == 0) { if (conn->authenticate_sent) { i_error("doveadm authentication failed (%s)",