mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-26 14:42:21 +00:00
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.
This commit is contained in:
parent
3829046893
commit
a142c1deb4
@ -198,6 +198,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);
|
||||
case OBJ_TYPE_CHECK: return __objt_check(t);
|
||||
default: return t; // exact pointer for invalid case
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user