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:
Christopher Faulet 2020-04-21 11:48:53 +02:00
parent 3829046893
commit a142c1deb4

View File

@ -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
}