]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Use DOVEADM_PROTOCOL_MIN_VERSION_MULTIPLEX macro
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 13 Aug 2021 12:55:24 +0000 (15:55 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 17 Jan 2022 11:52:09 +0000 (13:52 +0200)
src/doveadm/client-connection-tcp.c

index e5933c8d6af9e172d4be6a0132967a1b7ff115c8..4eddcf0d5d25795a968f683bdc8052bb4b230091 100644 (file)
@@ -394,7 +394,7 @@ client_connection_tcp_input(struct client_connection_tcp *conn)
                        client_connection_tcp_destroy(&conn);
                        return;
                }
-               if (minor > 0) {
+               if (minor >= DOVEADM_PROTOCOL_MIN_VERSION_MULTIPLEX) {
                        /* send version reply */
                        o_stream_nsend_str(conn->output,
                                           DOVEADM_CLIENT_PROTOCOL_VERSION_LINE"\n");