From: Emeric Brun Date: Wed, 16 Dec 2015 14:28:12 +0000 (+0100) Subject: BUG/MEDIUM: peers: old stick table updates could be repushed. X-Git-Tag: v1.7-dev1~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c6235dbba0a67bad1d5e57ada88f28e1270a5cb;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: peers: old stick table updates could be repushed. Because the stick table updates tree was not properly initialized to EB_ROOT_UNIQUE. --- diff --git a/src/stick_table.c b/src/stick_table.c index 3328616bfd..93fb10c0a3 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -395,6 +395,7 @@ int stktable_init(struct stktable *t) if (t->size) { memset(&t->keys, 0, sizeof(t->keys)); memset(&t->exps, 0, sizeof(t->exps)); + t->updates = EB_ROOT_UNIQUE; t->pool = create_pool("sticktables", sizeof(struct stksess) + t->data_size + t->key_size, MEM_F_SHARED);