return 0;
chn = ((smp->opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? &smp->strm->res : &smp->strm->req;
- if (!chn->buf)
- return 0;
-
smp->data.type = SMP_T_SINT;
smp->data.u.sint = chn->buf->i;
smp->flags = SMP_F_VOLATILE | SMP_F_MAY_CHANGE;
goto not_ssl_hello;
chn = ((smp->opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? &smp->strm->res : &smp->strm->req;
- if (!chn->buf)
- goto not_ssl_hello;
-
bleft = chn->buf->i;
data = (unsigned char *)chn->buf->p;
goto not_ssl_hello;
chn = ((smp->opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? &smp->strm->res : &smp->strm->req;
- if (!chn->buf)
- goto not_ssl_hello;
-
bleft = chn->buf->i;
data = (unsigned char *)chn->buf->p;
goto not_ssl_hello;
chn = ((smp->opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? &smp->strm->res : &smp->strm->req;
- if (!chn->buf)
- goto not_ssl_hello;
-
bleft = chn->buf->i;
data = (const unsigned char *)chn->buf->p;
return 0;
req = &smp->strm->req;
- if (!req->buf)
- return 0;
-
msg_len = 0;
bleft = req->buf->i;
if (!bleft)
goto not_ssl_hello;
chn = ((smp->opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? &smp->strm->res : &smp->strm->req;
- if (!chn->buf)
- goto not_ssl_hello;
-
bleft = chn->buf->i;
data = (unsigned char *)chn->buf->p;
int bleft;
const unsigned char *data;
- if (!s->req.buf)
- return 0;
-
smp->flags = SMP_F_CONST;
smp->data.type = SMP_T_STR;
return 0;
chn = ((smp->opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? &smp->strm->res : &smp->strm->req;
- if (!chn->buf)
- return 0;
-
if (len_offset + len_size > chn->buf->i)
goto too_short;
return 0;
chn = ((smp->opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? &smp->strm->res : &smp->strm->req;
- if (!chn->buf)
- return 0;
-
if (!buf_size || buf_size > global.tune.bufsize || buf_offset + buf_size > global.tune.bufsize) {
/* will never match */
smp->flags = 0;