From: Willy Tarreau Date: Wed, 16 Mar 2011 05:55:50 +0000 (+0100) Subject: [BUG] session: src_conn_cur was returning src_conn_cnt instead X-Git-Tag: v1.5-dev8~275 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b6e608c115ac40e69e473e990aefb6a9cc1bc19;p=thirdparty%2Fhaproxy.git [BUG] session: src_conn_cur was returning src_conn_cnt instead Issue reported by Cory Forsyth and diagnosed by Cyril Bonté. Just a plain stupid copy-paste of the wrong fetch function call. --- diff --git a/src/session.c b/src/session.c index 21275768e6..24df9365e0 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 */