]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: peers: old stick table updates could be repushed.
authorEmeric Brun <ebrun@haproxy.com>
Wed, 16 Dec 2015 14:28:12 +0000 (15:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Dec 2015 14:50:53 +0000 (15:50 +0100)
Because the stick table updates tree was not properly initialized to EB_ROOT_UNIQUE.

src/stick_table.c

index 3328616bfd2669abf734e7ace35cc2717b782a05..93fb10c0a3ef7b734df2c76fab52c002402c3c82 100644 (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);