]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: peers: fix wrong message id on stick table updates acknowledgement.
authorEmeric Brun <ebrun@haproxy.com>
Fri, 21 Aug 2015 09:48:54 +0000 (11:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Aug 2015 12:24:17 +0000 (14:24 +0200)
The table definition message id was used instead of the update acknowledgement id.

This bug causes a malformated message and a protocol error and breaks the
connection.

After that, the updates remain unacknowledged.

src/peers.c

index 1f19fac5dc6bb1441a2f0d53371af6c288dca375..b4f6b979249dbd2905495661cfb8a9e596933c62 100644 (file)
@@ -429,7 +429,7 @@ static int peer_prepare_ackmsg(struct shared_table *st, char *msg, size_t size)
 
        /*  prepare message header */
        msg[0] = PEER_MSG_CLASS_STICKTABLE;
-       msg[1] = PEER_MSG_STKT_DEFINE;
+       msg[1] = PEER_MSG_STKT_ACK;
        cursor = &msg[2];
        intencode(datalen, &cursor);