mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-24 04:11:02 +01:00
BUILD: connection: silence a couple of null-deref build warnings at -Wextra
These ones don't need to be checked either.
This commit is contained in:
parent
543abd4027
commit
55e0da664e
@ -1029,7 +1029,7 @@ static inline struct proxy *conn_get_proxy(const struct connection *conn)
|
||||
*/
|
||||
static inline int conn_install_mux_fe(struct connection *conn, void *ctx)
|
||||
{
|
||||
struct bind_conf *bind_conf = objt_listener(conn->target)->bind_conf;
|
||||
struct bind_conf *bind_conf = __objt_listener(conn->target)->bind_conf;
|
||||
const struct mux_ops *mux_ops;
|
||||
|
||||
if (bind_conf->mux_proto)
|
||||
|
||||
@ -862,7 +862,7 @@ int conn_recv_netscaler_cip(struct connection *conn, int flag)
|
||||
|
||||
/* Decode a possible NetScaler Client IP request, fail early if
|
||||
* it does not match */
|
||||
if (ntohl(*(uint32_t *)line) != objt_listener(conn->target)->bind_conf->ns_cip_magic)
|
||||
if (ntohl(*(uint32_t *)line) != __objt_listener(conn->target)->bind_conf->ns_cip_magic)
|
||||
goto bad_magic;
|
||||
|
||||
/* Legacy CIP protocol */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user