mgcp: Determine the proto properly...

This commit is contained in:
Holger Hans Peter Freyther 2010-08-06 07:39:26 +08:00
parent e2170a9f03
commit 0d44eb6a24
1 changed files with 1 additions and 1 deletions

View File

@ -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... */