From b157d73beb39e43a8df87c0d9d2f6ee5a9909bfa Mon Sep 17 00:00:00 2001 From: Emeric Brun Date: Fri, 21 Aug 2015 12:00:30 +0200 Subject: [PATCH] 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. --- src/peers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/peers.c b/src/peers.c index b4f6b9792..f628a7f36 100644 --- a/src/peers.c +++ b/src/peers.c @@ -457,6 +457,8 @@ static void peer_session_release(struct appctx *appctx) /* 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) { -- 2.47.3