diff --git a/include/proto/proto_http.h b/include/proto/proto_http.h index ef028cd60..2f8be3f5e 100644 --- a/include/proto/proto_http.h +++ b/include/proto/proto_http.h @@ -30,7 +30,6 @@ #include #define IS_HTX_STRM(strm) ((strm)->flags & SF_HTX) -#define IS_HTX_SMP(smp) ((smp)->strm && IS_HTX_STRM((smp)->strm)) extern struct pool_head *pool_head_uniqueid; diff --git a/src/payload.c b/src/payload.c index a16f8c601..f9b5fe02a 100644 --- a/src/payload.c +++ b/src/payload.c @@ -55,7 +55,7 @@ smp_fetch_len(const struct arg *args, struct sample *smp, const char *kw, void * chn = ((smp->opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? &smp->strm->res : &smp->strm->req; smp->data.type = SMP_T_SINT; - if (IS_HTX_SMP(smp)) { + if (IS_HTX_STRM(smp->strm)) { struct htx *htx = htxbuf(&chn->buf); smp->data.u.sint = htx->data - co_data(chn); }