BUG/MAJOR: peers: fix current table pointer not re-initialized on session release.
This bug causes malfunctions after re-connect. For instance the re-sync fails.
diff --git a/src/peers.c b/src/peers.c
index b4f6b97..f628a7f 100644
--- a/src/peers.c
+++ b/src/peers.c
@@ -457,6 +457,8 @@
/* peer session identified */
if (peer) {
if (peer->stream == s) {
+ /* Re-init current table pointers to force announcement on re-connect */
+ peer->remote_table = peer->last_local_table = NULL;
peer->stream = NULL;
peer->appctx = NULL;
if (peer->flags & PEER_F_LEARN_ASSIGN) {