]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imapc: Fixed "Bad file descriptor" errors after mail was closed.
authorTimo Sirainen <tss@iki.fi>
Wed, 5 Oct 2011 14:21:46 +0000 (17:21 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 5 Oct 2011 14:21:46 +0000 (17:21 +0300)
src/lib-storage/index/imapc/imapc-mail.c

index 9857525c15146f2aa0f3362a384a8b8c40336573..a5b90bfb3a1fef92124862a90e33cfd0bb55f7e8 100644 (file)
@@ -245,6 +245,7 @@ static void imapc_mail_close(struct mail *_mail)
        if (mail->fd != -1) {
                if (close(mail->fd) < 0)
                        i_error("close(imapc mail) failed: %m");
+               mail->fd = -1;
        }
        if (mail->body != NULL)
                buffer_free(&mail->body);