mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-25 04:41:00 +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)
|
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;
|
const struct mux_ops *mux_ops;
|
||||||
|
|
||||||
if (bind_conf->mux_proto)
|
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
|
/* Decode a possible NetScaler Client IP request, fail early if
|
||||||
* it does not match */
|
* 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;
|
goto bad_magic;
|
||||||
|
|
||||||
/* Legacy CIP protocol */
|
/* Legacy CIP protocol */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user