Skip to content

Commit

Permalink
lmtp: Fix assert-crash when proxy overrides mail_max_lock_timeout
Browse files Browse the repository at this point in the history
Time unit is required or the call fails.
  • Loading branch information
sirainen authored and GitLab committed May 2, 2017
1 parent 541f258 commit 167dbb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lmtp/commands.c
Expand Up @@ -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)
Expand Down

0 comments on commit 167dbb6

Please sign in to comment.