mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-01 20:43:47 +00:00
osmux: fix error path in osmux_handle_dummy()
This patch adds a missing goto err. While at it, reword log message.
This commit is contained in:
@@ -330,8 +330,9 @@ static int osmux_handle_dummy(struct mgcp_config *cfg, struct sockaddr_in *addr,
|
|||||||
if (osmux_enable_endpoint(endp, OSMUX_ROLE_BSC_NAT,
|
if (osmux_enable_endpoint(endp, OSMUX_ROLE_BSC_NAT,
|
||||||
&addr->sin_addr, addr->sin_port) < 0 ){
|
&addr->sin_addr, addr->sin_port) < 0 ){
|
||||||
LOGP(DMGCP, LOGL_ERROR,
|
LOGP(DMGCP, LOGL_ERROR,
|
||||||
"Could not update osmux in endpoint %d\n",
|
"Could not enable osmux in endpoint %d\n",
|
||||||
ENDPOINT_NUMBER(endp));
|
ENDPOINT_NUMBER(endp));
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOGP(DMGCP, LOGL_INFO, "Enabling osmux in endpoint %d for %s:%u\n",
|
LOGP(DMGCP, LOGL_INFO, "Enabling osmux in endpoint %d for %s:%u\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user