From: Frédéric Lécaille Date: Mon, 14 Feb 2022 18:01:21 +0000 (+0100) Subject: MINOR: quic: Avoid warning about NULL pointer dereferences X-Git-Tag: v2.6-dev2~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1c3546efa7ad60939908ceb704423b3974145b4;p=thirdparty%2Fhaproxy.git MINOR: quic: Avoid warning about NULL pointer dereferences This is the same fixe as for this commit: "BUILD: tree-wide: avoid warnings caused by redundant checks of obj_types" Should fix CID 1469649 for GH #1546 --- diff --git a/src/proto_quic.c b/src/proto_quic.c index 5296721c15..e3ea5094f7 100644 --- a/src/proto_quic.c +++ b/src/proto_quic.c @@ -263,11 +263,11 @@ int quic_connect_server(struct connection *conn, int flags) switch (obj_type(conn->target)) { case OBJ_TYPE_PROXY: - be = objt_proxy(conn->target); + be = __objt_proxy(conn->target); srv = NULL; break; case OBJ_TYPE_SERVER: - srv = objt_server(conn->target); + srv = __objt_server(conn->target); be = srv->proxy; break; default: