]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Fix assert-crash when proxy overrides mail_max_lock_timeout
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 2 May 2017 14:57:40 +0000 (17:57 +0300)
committerGitLab <gitlab@git.dovecot.net>
Tue, 2 May 2017 16:11:10 +0000 (19:11 +0300)
Time unit is required or the call fails.

src/lmtp/commands.c

index 5067ab514b95ca1a826e07a9f47c67fb5467d673..7d4f04fc731e3796692cb54ccc030de7c64fb360 100644 (file)
@@ -842,7 +842,7 @@ client_deliver(struct client *client, const struct mail_recipient *rcpt,
                   advertised that it's going to timeout the connection.
                   this avoids duplicate deliveries in case the delivery
                   succeeds after the proxy has already disconnected from us. */
-               line = t_strdup_printf("mail_max_lock_timeout=%u",
+               line = t_strdup_printf("mail_max_lock_timeout=%us",
                                       client->proxy_timeout_secs <= 1 ? 1 :
                                       client->proxy_timeout_secs-1);
                if (settings_parse_line(set_parser, line) < 0)