diff --git a/include/proto/proto_tcp.h b/include/proto/proto_tcp.h index c7aef6a89..ae23c726a 100644 --- a/include/proto/proto_tcp.h +++ b/include/proto/proto_tcp.h @@ -46,8 +46,10 @@ static inline struct stktable_key *tcp_src_to_stktable_key(struct session *s) switch (s->si[0].addr.c.from.ss_family) { case AF_INET: static_table_key.key = (void *)&((struct sockaddr_in *)&s->si[0].addr.c.from)->sin_addr; + break; case AF_INET6: static_table_key.key = (void *)&((struct sockaddr_in6 *)&s->si[0].addr.c.from)->sin6_addr; + break; } return &static_table_key; }