Mercurial > dovecot > core-2.2
changeset 13604:f2732fa01394
imapc: Fixed "Bad file descriptor" errors after mail was closed.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 05 Oct 2011 17:21:46 +0300 |
parents | ae1f8bae28eb |
children | 0602a0d36164 |
files | src/lib-storage/index/imapc/imapc-mail.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/imapc/imapc-mail.c Wed Oct 05 15:57:03 2011 +0300 +++ b/src/lib-storage/index/imapc/imapc-mail.c Wed Oct 05 17:21:46 2011 +0300 @@ -245,6 +245,7 @@ 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);