diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-06 07:39:26 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-06 07:49:57 +0800 |
commit | 0d44eb6a24578729a6996eadaa692aa017ec2e4a (patch) | |
tree | 11340b404c8956e809527fdcb6aea46d362a6c7b | |
parent | e2170a9f0398c738749e78e1c4cd66684a0dccbd (diff) |
mgcp: Determine the proto properly...
-rw-r--r-- | openbsc/src/mgcp/mgcp_network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_network.c b/openbsc/src/mgcp/mgcp_network.c index c864723a6..d38542c39 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... */ |