mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-24 12:20:59 +01:00
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:
parent
ee4508da4f
commit
e1c3546efa
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user