]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Avoid warning about NULL pointer dereferences
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 14 Feb 2022 18:01:21 +0000 (19:01 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 15 Feb 2022 16:23:44 +0000 (17:23 +0100)
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

src/proto_quic.c

index 5296721c159d1b386dead6e1e8346ccf350027ae..e3ea5094f7b383de6ec239a041da512feefcc725 100644 (file)
@@ -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: