From: Christopher Faulet Date: Tue, 21 Apr 2020 09:48:53 +0000 (+0200) Subject: BUG/MINOR: obj_type: Handle stream object in obj_base_ptr() function X-Git-Tag: v2.1.5~69 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=6bd76726c3fba7d85d3326ec56d4159db585868f;p=haproxy-2.1.git BUG/MINOR: obj_type: Handle stream object in obj_base_ptr() function The stream object (OBJ_TYPE_STREAM) was missing in the switch statement of the obj_base_ptr() function. This patch must be backported as far as 2.0. (cherry picked from commit a142c1deb401308055f29b9d52a47e5a0ad962e7) Signed-off-by: Willy Tarreau --- diff --git a/include/proto/obj_type.h b/include/proto/obj_type.h index cc35d5c..1f59494 100644 --- a/include/proto/obj_type.h +++ b/include/proto/obj_type.h @@ -184,6 +184,7 @@ static inline void *obj_base_ptr(enum obj_type *t) case OBJ_TYPE_CONN: return __objt_conn(t); case OBJ_TYPE_SRVRQ: return __objt_dns_srvrq(t); case OBJ_TYPE_CS: return __objt_cs(t); + case OBJ_TYPE_STREAM: return __objt_stream(t); default: return t; // exact pointer for invalid case } }