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
This commit is contained in:
Frédéric Lécaille 2022-02-14 19:01:21 +01:00 committed by Amaury Denoyelle
parent ee4508da4f
commit e1c3546efa

View File

@ -263,11 +263,11 @@ int quic_connect_server(struct connection *conn, int flags)
switch (obj_type(conn->target)) { switch (obj_type(conn->target)) {
case OBJ_TYPE_PROXY: case OBJ_TYPE_PROXY:
be = objt_proxy(conn->target); be = __objt_proxy(conn->target);
srv = NULL; srv = NULL;
break; break;
case OBJ_TYPE_SERVER: case OBJ_TYPE_SERVER:
srv = objt_server(conn->target); srv = __objt_server(conn->target);
be = srv->proxy; be = srv->proxy;
break; break;
default: default: