dovecot-2.2: dsync server: Fixed crash at deinit
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jan 10 14:00:29 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/4da6d4fa1892
changeset: 15633:4da6d4fa1892
user: Timo Sirainen <tss at iki.fi>
date: Thu Jan 10 13:56:59 2013 +0200
description:
dsync server: Fixed crash at deinit
diffstat:
src/doveadm/dsync/doveadm-dsync.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (19 lines):
diff -r 40dd9a080b6e -r 4da6d4fa1892 src/doveadm/dsync/doveadm-dsync.c
--- a/src/doveadm/dsync/doveadm-dsync.c Thu Jan 10 12:12:50 2013 +0200
+++ b/src/doveadm/dsync/doveadm-dsync.c Thu Jan 10 13:56:59 2013 +0200
@@ -666,12 +666,10 @@
io_loop_run(current_ioloop);
+ if (dsync_brain_deinit(&brain) < 0)
+ _ctx->exit_code = EX_TEMPFAIL;
dsync_ibc_deinit(&ibc);
- if (dsync_brain_deinit(&brain) < 0) {
- _ctx->exit_code = EX_TEMPFAIL;
- return -1;
- }
- return 0;
+ return _ctx->exit_code == 0 ? 0 : -1;
}
static bool
More information about the dovecot-cvs
mailing list