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:
Pablo Neira Ayuso 2014-08-28 15:35:58 +02:00
parent 1e1558f548
commit 1c81045521
1 changed files with 2 additions and 1 deletions

View File

@ -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,
&addr->sin_addr, addr->sin_port) < 0 ){
LOGP(DMGCP, LOGL_ERROR,
"Could not update osmux in endpoint %d\n",
"Could not enable osmux in endpoint %d\n",
ENDPOINT_NUMBER(endp));
goto out;
}
LOGP(DMGCP, LOGL_INFO, "Enabling osmux in endpoint %d for %s:%u\n",