aboutsummaryrefslogtreecommitdiffstats
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-06 07:49:57 +0800
commit0d44eb6a24578729a6996eadaa692aa017ec2e4a (patch)
tree11340b404c8956e809527fdcb6aea46d362a6c7b
parente2170a9f0398c738749e78e1c4cd66684a0dccbd (diff)
mgcp: Determine the proto properly...
-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 c864723a..d38542c3 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... */