mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
BUG/MINOR: peers: Wrong server name parsing.
This commit was not complete: BUG/MINOR: peers: Wrong "server_name" decoding. We forgot forgotten to move forward <msg_cur> pointer variable after having parse the server name string. Again this bug may happen only if we add stick-table new data type after the server name which is the current last one. Furthermore this bug is visible only the first time a peer sends a server name for a stick-table entry. Nothing to backport.
This commit is contained in:
parent
81284e6908
commit
56aec0ddc6
@ -1471,6 +1471,8 @@ static int peer_treat_updatemsg(struct appctx *appctx, struct peer *p, int updt,
|
||||
|
||||
chunk_memcpy(chunk, *msg_cur, value_len);
|
||||
chunk->area[chunk->data] = '\0';
|
||||
*msg_cur += value_len;
|
||||
|
||||
de = dict_insert(&server_name_dict, chunk->area);
|
||||
dc->rx[id - 1].de = de;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user