]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-doveadm: Fix delayed command sending
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 14 Sep 2021 12:10:31 +0000 (15:10 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 17 Jan 2022 11:52:09 +0000 (13:52 +0200)
It doveadm_client_cmd() was called before doveadm authentication was
finished, --proxy-ttl parameter wasn't sent.

src/lib-doveadm/doveadm-client.c

index 24292c6b70819b7d737a893203c337ccd7c42063..eb61cbb39ec20bcf51020339dbbbea6fb5771450 100644 (file)
@@ -346,7 +346,8 @@ static void doveadm_client_authenticated(struct doveadm_client *conn)
                o_stream_nsend_str(conn->conn.output, "\t\tOPTION\tlog-passthrough\n");
 
        if (conn->delayed_cmd != NULL) {
-               o_stream_nsend_str(conn->conn.output, conn->delayed_cmd);
+               doveadm_client_send_cmd(conn, conn->delayed_cmd,
+                                       conn->delayed_cmd_proxy_ttl);
                conn->delayed_cmd = NULL;
                doveadm_client_send_cmd_input(conn);
        }