aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-06 07:39:26 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-08 07:24:13 +0800
commit0457b4b6da1daf4f852bac19960542b1134ab836 (patch)
tree78cb7208512dd3f20d3609bda7e1d8a567d1997a /openbsc
parentc372b1eb75961a8b0fd9b204de5b8040a55d39c2 (diff)
mgcp: Determine the proto properly...
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/mgcp/mgcp_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_network.c b/openbsc/src/mgcp/mgcp_network.c
index 15097bfc1..9aacdd7b0 100644
--- a/openbsc/src/mgcp/mgcp_network.c
+++ b/openbsc/src/mgcp/mgcp_network.c
@@ -281,7 +281,7 @@ static int rtp_data_bts(struct bsc_fd *fd, unsigned int what)
if (rc <= 0)
return -1;
- proto = &endp->bts_end.rtp ? PROTO_RTP : PROTO_RTCP;
+ proto = fd == &endp->bts_end.rtp ? PROTO_RTP : PROTO_RTCP;
/* We have no idea who called us, maybe it is the BTS. */
/* it was the BTS... */