mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
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:
@@ -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...) \
|
||||
|
Reference in New Issue
Block a user