mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-08 19:21:05 +01:00
BUG/MEDIUM: peers: fix wrong message id on stick table updates acknowledgement.
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.
This commit is contained in:
parent
29fbe51490
commit
e1ab808ff8
@ -429,7 +429,7 @@ static int peer_prepare_ackmsg(struct shared_table *st, char *msg, size_t size)
|
|||||||
|
|
||||||
/* prepare message header */
|
/* prepare message header */
|
||||||
msg[0] = PEER_MSG_CLASS_STICKTABLE;
|
msg[0] = PEER_MSG_CLASS_STICKTABLE;
|
||||||
msg[1] = PEER_MSG_STKT_DEFINE;
|
msg[1] = PEER_MSG_STKT_ACK;
|
||||||
cursor = &msg[2];
|
cursor = &msg[2];
|
||||||
intencode(datalen, &cursor);
|
intencode(datalen, &cursor);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user