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.

38 lines
1.3 KiB

haproxy: update to version 1.5.11 and pending patches - BUG/MEDIUM: backend: correctly detect the domain when use_domain_only is used - MINOR: ssl: load certificates in alphabetical order - BUG/MINOR: checks: prevent http keep-alive with http-check expect - BUG/MEDIUM: Do not set agent health to zero if server is disabled in config - MEDIUM/BUG: Only explicitly report "DOWN (agent)" if the agent health is zero - BUG/MINOR: stats:Fix incorrect printf type. - DOC: add missing entry for log-format and clarify the text - BUG/MEDIUM: http: fix header removal when previous header ends with pure LF - BUG/MEDIUM: channel: fix possible integer overflow on reserved size computation - BUG/MINOR: channel: compare to_forward with buf->i, not buf->size - MINOR: channel: add channel_in_transit() - MEDIUM: channel: make buffer_reserved() use channel_in_transit() - MEDIUM: channel: make bi_avail() use channel_in_transit() - BUG/MEDIUM: channel: don't schedule data in transit for leaving until connected - BUG/MAJOR: log: don't try to emit a log if no logger is set - BUG/MINOR: args: add missing entry for ARGT_MAP in arg_type_names - BUG/MEDIUM: http: make http-request set-header compute the string before removal - BUG/MINOR: http: fix incorrect header value offset in replace-hdr/replace-value - BUG/MINOR: http: abort request processing on filter failure - BUG/MINOR: pattern: error message missing - BUG/MEDIUM: pattern: some entries are not deleted with case insensitive match Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
10 years ago
  1. From 623401b983185c1e0f6507e96557de3bc46fd41b Mon Sep 17 00:00:00 2001
  2. From: Thierry FOURNIER <tfournier@exceliance.fr>
  3. Date: Fri, 6 Feb 2015 17:53:54 +0100
  4. Subject: [PATCH 2/2] BUG/MEDIUM: pattern: some entries are not deleted with
  5. case insensitive match
  6. ACL or map entries are not deleted with the command "del acl" or "del map"
  7. if the case insentive flag is set.
  8. This is because the the case insensitive string are stored in a list and the
  9. default delete function associated with string looks in a tree. I add a check
  10. of the case insensitive flag and execute the delete function for lists if it
  11. is set.
  12. This patch must be backported in 1.5 version.
  13. (cherry picked from commit 73bc285be194f443dc7eab9c949e87e1dbe8f70c)
  14. ---
  15. src/pattern.c | 4 ++++
  16. 1 file changed, 4 insertions(+)
  17. diff --git a/src/pattern.c b/src/pattern.c
  18. index a6fc52d..b19ffe2 100644
  19. --- a/src/pattern.c
  20. +++ b/src/pattern.c
  21. @@ -1308,6 +1308,10 @@ void pat_del_tree_str(struct pattern_expr *expr, struct pat_ref_elt *ref)
  22. struct ebmb_node *node, *next_node;
  23. struct pattern_tree *elt;
  24. + /* If the flag PAT_F_IGNORE_CASE is set, we cannot use trees */
  25. + if (expr->mflags & PAT_MF_IGNORE_CASE)
  26. + return pat_del_list_ptr(expr, ref);
  27. +
  28. /* browse each node of the tree. */
  29. for (node = ebmb_first(&expr->pattern_tree), next_node = node ? ebmb_next(node) : NULL;
  30. node;
  31. --
  32. 2.0.4