diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-10-16 16:45:40 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-10-16 16:45:43 +0200 |
commit | ff6606cacb18985b5583e2a96bb36664d7c0e1f3 (patch) | |
tree | 876e76cfc6714c589ee627128b72cf7b35ef4faa | |
parent | 407b1f186dee21b77daad99ee129f79d8a87fce4 (diff) |
osmux: Avoid processing further frames if conn not found
Other frames can come from known connections, so let's keep processing
each of them.
Change-Id: I09190140ba917dfada4b0952230b68e0f5f6d43d
-rw-r--r-- | src/libosmo-mgcp/mgcp_osmux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libosmo-mgcp/mgcp_osmux.c b/src/libosmo-mgcp/mgcp_osmux.c index ca446ff53..a2c138dd9 100644 --- a/src/libosmo-mgcp/mgcp_osmux.c +++ b/src/libosmo-mgcp/mgcp_osmux.c @@ -394,7 +394,7 @@ int osmux_read_from_bsc_nat_cb(struct osmo_fd *ofd, unsigned int what) /* FIXME: Get rid of CONN_ID_XXX! */ conn_bts = mgcp_conn_get_rtp(endp, CONN_ID_BTS); if (!conn_bts) - goto out; + continue; if (!endp) { LOGP(DLMGCP, LOGL_ERROR, @@ -478,7 +478,7 @@ int osmux_read_from_bsc_cb(struct osmo_fd *ofd, unsigned int what) /* FIXME: Get rid of CONN_ID_XXX! */ conn_net = mgcp_conn_get_rtp(endp, CONN_ID_NET); if (!conn_net) - goto out; + continue; if (!endp) { LOGP(DLMGCP, LOGL_ERROR, |