From 56aec0ddc6726081547b368ffc0adf7a4a3d95ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Thu, 6 Jun 2019 14:14:15 +0200 Subject: [PATCH] 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 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. --- src/peers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/peers.c b/src/peers.c index f3a465d32e..159f7cedfe 100644 --- a/src/peers.c +++ b/src/peers.c @@ -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; } -- 2.47.3