[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.
This commit is contained in:
Willy Tarreau 2011-03-16 06:55:50 +01:00
parent a1525cdf17
commit 1b6e608c11

View 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> */