diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-07-09 01:35:53 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-07-22 15:15:13 +0200 |
commit | a563641d255fcafd8debb32ecf9d3b92ec133753 (patch) | |
tree | 07ac90784e0917aa7dc6372982000e5c60234391 /openbsc/src/libmgcp/osmux.c | |
parent | ea7ef387343a6a3ad07d1fbca76d842e0872cf6d (diff) |
osmux: Drop the message in case we don't know the remote yet.
Avoid creating a bogus state that will never go away.
Diffstat (limited to 'openbsc/src/libmgcp/osmux.c')
-rw-r--r-- | openbsc/src/libmgcp/osmux.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/libmgcp/osmux.c b/openbsc/src/libmgcp/osmux.c index b7131833d..2f135e747 100644 --- a/openbsc/src/libmgcp/osmux.c +++ b/openbsc/src/libmgcp/osmux.c @@ -130,6 +130,13 @@ int osmux_xfrm_to_osmux(int type, char *buf, int rc, struct mgcp_endpoint *endp) return 0; } + if (port == 0) { + LOGP(DMGCP, LOGL_ERROR, "0x%x remote end not known yet.\n", + ENDPOINT_NUMBER(endp)); + msgb_free(msg); + return 0; + } + /* Lookup for osmux input handle that munches this RTP frame */ in = osmux_handle_lookup(endp->cfg, addr, port); if (!in) { |