Mercurial > dovecot > core-2.2
diff src/doveadm/dsync/dsync-ibc-stream.c @ 17286:507aee5fef6d
dsync: Yet another fix to working with old versions.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 29 Apr 2014 00:53:01 +0300 |
parents | cd6079c61c2b |
children | 99a4788770cb |
line wrap: on
line diff
--- 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; }