CLEANUP: acl: use 'chn' instead of 'b' to name channel pointers

As with previous patches, this naming is confusing.
This commit is contained in:
Willy Tarreau 2012-10-12 23:58:13 +02:00
parent cb76e5978c
commit f332af7715

View File

@ -120,16 +120,16 @@ acl_fetch_ssl_hello_type(struct proxy *px, struct session *l4, void *l7, unsigne
{ {
int hs_len; int hs_len;
int hs_type, bleft; int hs_type, bleft;
struct channel *b; struct channel *chn;
const unsigned char *data; const unsigned char *data;
if (!l4) if (!l4)
goto not_ssl_hello; goto not_ssl_hello;
b = ((opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? l4->rep : l4->req; chn = ((opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? l4->rep : l4->req;
bleft = b->buf.i; bleft = chn->buf.i;
data = (const unsigned char *)b->buf.p; data = (const unsigned char *)chn->buf.p;
if (!bleft) if (!bleft)
goto too_short; goto too_short;
@ -324,16 +324,16 @@ acl_fetch_ssl_hello_sni(struct proxy *px, struct session *l4, void *l7, unsigned
const struct arg *args, struct sample *smp) const struct arg *args, struct sample *smp)
{ {
int hs_len, ext_len, bleft; int hs_len, ext_len, bleft;
struct channel *b; struct channel *chn;
unsigned char *data; unsigned char *data;
if (!l4) if (!l4)
goto not_ssl_hello; goto not_ssl_hello;
b = ((opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? l4->rep : l4->req; chn = ((opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? l4->rep : l4->req;
bleft = b->buf.i; bleft = chn->buf.i;
data = (unsigned char *)b->buf.p; data = (unsigned char *)chn->buf.p;
/* Check for SSL/TLS Handshake */ /* Check for SSL/TLS Handshake */
if (!bleft) if (!bleft)