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:
Frdric Lcaille 2019-06-06 14:14:15 +02:00 committed by Willy Tarreau
parent 81284e6908
commit 56aec0ddc6

View File

@ -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;
}