]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: tcp: fix inverted condition to call custom actions
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2015 15:50:10 +0000 (17:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2015 16:32:41 +0000 (18:32 +0200)
tcp-request connection had an inverted condition on action_ptr, resulting
in no registered actions to be usable since commit 4214873 ("MEDIUM: actions:
remove ACTION_STOP") merged in 1.6-dev5. Very few new actions were impacted.
No backport is needed.

src/proto_tcp.c

index ea7586661ca4a7af34d479637019a31487f62e81..9c0dc37d6bdb0ca0554d05b9558065c21598970e 100644 (file)
@@ -1392,7 +1392,7 @@ int tcp_exec_req_rules(struct session *sess)
                        }
                        else {
                                /* Custom keywords. */
-                               if (rule->action_ptr)
+                               if (!rule->action_ptr)
                                        break;
                                switch (rule->action_ptr(rule, sess->fe, sess, NULL, ACT_FLAG_FINAL | ACT_FLAG_FIRST)) {
                                case ACT_RET_YIELD: