dovecot-2.2: dsync: Yet another fix to working with old versions.

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 28 21:53:27 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/507aee5fef6d
changeset: 17286:507aee5fef6d
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Apr 29 00:53:01 2014 +0300
description:
dsync: Yet another fix to working with old versions.

diffstat:

 src/doveadm/dsync/dsync-ibc-stream.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 605df40b0aef -r 507aee5fef6d src/doveadm/dsync/dsync-ibc-stream.c
--- a/src/doveadm/dsync/dsync-ibc-stream.c	Tue Apr 29 00:50:08 2014 +0300
+++ b/src/doveadm/dsync/dsync-ibc-stream.c	Tue Apr 29 00:53:01 2014 +0300
@@ -850,8 +850,8 @@
 		dsync_ibc_input_error(ibc, decoder, "Invalid last_common_pvt_modseq");
 		return DSYNC_IBC_RECV_RET_TRYAGAIN;
 	}
-	value = dsync_deserializer_decode_get(decoder, "last_messages_count");
-	if (str_to_uint32(value, &state_r->last_messages_count) < 0) {
+	if (dsync_deserializer_decode_try(decoder, "last_messages_count", &value) &&
+	    str_to_uint32(value, &state_r->last_messages_count) < 0) {
 		dsync_ibc_input_error(ibc, decoder, "Invalid last_messages_count");
 		return DSYNC_IBC_RECV_RET_TRYAGAIN;
 	}


More information about the dovecot-cvs mailing list