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

index 242080a5201f8bbfb8b409e90526a57b876ea672..b8a0263eaefba8d0fd042b78a11eb5934188331c 100644 (file)
@@ -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)",