mgcp_internal: LOGPENDP: ensure *endp is not NULL

In certain cases the endp can be NULL. LOGPENDP will dereference the
pointer to retreive the endpoint number.

Fixes: 8a893442a1e9 ("mgcp_internal: LOGPENDP: ensure *endp is not NULL")
Change-Id: Ie9b5ecf08f69533ccb2fbd7fbbb529105e0c922f
This commit is contained in:
Alexander Couzens
2019-05-02 17:48:13 +02:00
parent 84274e4e9b
commit 9d9f44ac71

View File

@@ -338,7 +338,7 @@ void mgcp_conn_watchdog_kick(struct mgcp_conn *conn);
#define LOGPENDP(endp, cat, level, fmt, args...) \
LOGP(cat, level, "endpoint:0x%x " fmt, \
ENDPOINT_NUMBER(endp), \
endp ? ENDPOINT_NUMBER(endp) : -1, \
## args)
#define LOGPCONN(conn, cat, level, fmt, args...) \