BUG/MEDIUM: peers: old stick table updates could be repushed.

Because the stick table updates tree was not properly initialized to EB_ROOT_UNIQUE.
This commit is contained in:
Emeric Brun 2015-12-16 15:28:12 +01:00 committed by Willy Tarreau
parent 234fc3c31e
commit 1c6235dbba

View File

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