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:
Willy Tarreau 2018-09-20 11:26:52 +02:00
parent 543abd4027
commit 55e0da664e
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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 */