]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Mail cache file: Fix to previous locking changes.
authorTimo Sirainen <tss@iki.fi>
Tue, 9 Sep 2008 16:40:30 +0000 (19:40 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 9 Sep 2008 16:40:30 +0000 (19:40 +0300)
--HG--
branch : HEAD

src/lib-index/mail-cache.c

index 4b9379d6b45a4140fbd814857eee4e5d98d3250a..36c5a7f44f808d0a2d7ee39993730a509aa943a0 100644 (file)
@@ -538,7 +538,7 @@ int mail_cache_lock(struct mail_cache *cache, bool require_same_reset_id)
                                break;
                }
 
-               if (mail_cache_lock_file(cache) <= 0) {
+               if ((ret = mail_cache_lock_file(cache)) <= 0) {
                        ret = -1;
                        break;
                }