From 1b6e608c115ac40e69e473e990aefb6a9cc1bc19 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 16 Mar 2011 06:55:50 +0100 Subject: [PATCH] [BUG] session: src_conn_cur was returning src_conn_cnt instead MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue reported by Cory Forsyth and diagnosed by Cyril Bonté. Just a plain stupid copy-paste of the wrong fetch function call. --- src/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session.c b/src/session.c index 21275768e..24df9365e 100644 --- a/src/session.c +++ b/src/session.c @@ -2533,7 +2533,7 @@ acl_fetch_src_conn_cur(struct proxy *px, struct session *l4, void *l7, int dir, if (!px) return 0; /* table not found */ - return acl_fetch_conn_cnt(&px->table, test, stktable_lookup_key(&px->table, key)); + return acl_fetch_conn_cur(&px->table, test, stktable_lookup_key(&px->table, key)); } /* set test->i to the cumulated number of sessions in the stksess entry */