You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
961 B

  1. From a320fd146f802a851a396b2cde491711a4fb87cf Mon Sep 17 00:00:00 2001
  2. From: Emeric Brun <ebrun@haproxy.com>
  3. Date: Wed, 16 Dec 2015 15:28:12 +0100
  4. Subject: [PATCH 12/13] BUG/MEDIUM: peers: old stick table updates could be
  5. repushed.
  6. Because the stick table updates tree was not properly initialized to EB_ROOT_UNIQUE.
  7. (cherry picked from commit 1c6235dbba0a67bad1d5e57ada88f28e1270a5cb)
  8. (cherry picked from commit 6e80935a77c8c2c67a982780a0f14c241f02f2aa)
  9. ---
  10. src/stick_table.c | 1 +
  11. 1 file changed, 1 insertion(+)
  12. diff --git a/src/stick_table.c b/src/stick_table.c
  13. index 48d5710..6310690 100644
  14. --- a/src/stick_table.c
  15. +++ b/src/stick_table.c
  16. @@ -385,6 +385,7 @@ int stktable_init(struct stktable *t)
  17. if (t->size) {
  18. memset(&t->keys, 0, sizeof(t->keys));
  19. memset(&t->exps, 0, sizeof(t->exps));
  20. + t->updates = EB_ROOT_UNIQUE;
  21. t->pool = create_pool("sticktables", sizeof(struct stksess) + t->data_size + t->key_size, MEM_F_SHARED);
  22. --
  23. 2.4.10