diff --git a/src/mux_h2.c b/src/mux_h2.c index bdc21521a..ea4f90f7a 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -351,6 +351,17 @@ static void h2_release(struct connection *conn) } +/******************************************************/ +/* functions below are for the H2 protocol processing */ +/******************************************************/ + +/* returns the stream if of stream or 0 if is NULL */ +static inline int h2s_id(const struct h2s *h2s) +{ + return h2s ? h2s->id : 0; +} + + /*********************************************************/ /* functions below are I/O callbacks from the connection */ /*********************************************************/