]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] session: src_conn_cur was returning src_conn_cnt instead
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Mar 2011 05:55:50 +0000 (06:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Mar 2011 05:56:57 +0000 (06:56 +0100)
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

index 21275768e6ec4bb14e88319144fd423ef1dd1388..24df9365e0972ada8192cbf60c088359759c9537 100644 (file)
@@ -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 <ts> */