Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5960:33908f232e9a HEAD
If we couldn't add a new header field, don't crash.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 12 Jul 2007 04:56:02 +0300 |
parents | 5513182aed67 |
children | 7aa61bb91ba3 |
files | src/lib-index/mail-cache-transaction.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-cache-transaction.c Thu Jul 12 04:55:20 2007 +0300 +++ b/src/lib-index/mail-cache-transaction.c Thu Jul 12 04:56:02 2007 +0300 @@ -681,7 +681,7 @@ if (mail_cache_compress(cache, ctx->trans) < 0) return -1; if ((ret = mail_cache_transaction_lock(ctx)) <= 0) - return ret; + return -1; } /* re-read header to make sure we don't lose any fields. */