]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission: submission-commands - Make sure BURL request abort does not try to send...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sat, 4 Feb 2023 17:33:26 +0000 (18:33 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 20 Feb 2023 09:21:45 +0000 (09:21 +0000)
src/submission/submission-commands.c

index 5debd277e952ef216a1219e77c5d04289456e40a..6593f8544227f46c6604b507822434d20eaf96e3 100644 (file)
@@ -338,6 +338,12 @@ cmd_burl_fetch_cb(struct imap_urlauth_fetch_reply *reply,
        struct smtp_server_cmd_ctx *cmd = burl_cmd->cmd;
        int ret;
 
+       if (burl_cmd->chunk_added) {
+               /* We returned 0 in earlier callback. This is just
+                  the abort of the pending request. */
+               return 1;
+       }
+
        i_assert(last);
 
        if (reply == NULL) {