fix unwanted zeroing of counters in the last udc (reported by Jon Lewis)
diff --git a/communication.c b/communication.c
index b4a1739..02ea1eb 100644
--- a/communication.c
+++ b/communication.c
@@ -303,8 +303,9 @@
 	new = newcounters;
 	while (cc != u_repl->cc) {
 		if (!next || next == entries->entries) {
-			while (chainnr < u_repl->num_chains && (!(entries = u_repl->chains[chainnr++]) ||
-			       (next = entries->entries->next) == entries->entries));
+			while (chainnr < u_repl->num_chains && (!(entries = u_repl->chains[chainnr]) ||
+			       (next = entries->entries->next) == entries->entries))
+				chainnr++;
 			if (chainnr == u_repl->num_chains)
 				break;
 		}