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 <w@1wt.eu>
(cherry picked from commit 6bd76726c3fba7d85d3326ec56d4159db585868f)
Signed-off-by: Willy Tarreau <w@1wt.eu>
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 @@
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
}
}