diff --git a/include/haproxy/stconn.h b/include/haproxy/stconn.h index 7869fa340..dff604403 100644 --- a/include/haproxy/stconn.h +++ b/include/haproxy/stconn.h @@ -34,7 +34,7 @@ struct appctx; struct stream; struct check; -#define IS_HTX_SC(sc) (sc_conn(sc) && IS_HTX_CONN(__sc_conn(sc))) +#define IS_HTX_SC(sc) ((sc_conn(sc) && IS_HTX_CONN(__sc_conn(sc))) || (sc_appctx(sc) && IS_HTX_STRM(__sc_strm(sc)))) struct sedesc *sedesc_new(); void sedesc_free(struct sedesc *sedesc);