From: Emeric Brun Date: Fri, 21 Aug 2015 10:00:30 +0000 (+0200) Subject: BUG/MAJOR: peers: fix current table pointer not re-initialized on session release. X-Git-Tag: v1.6-dev4~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b157d73beb39e43a8df87c0d9d2f6ee5a9909bfa;p=thirdparty%2Fhaproxy.git 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 b4f6b97924..f628a7f36c 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) {