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-08 07:24:13 +0800 |
commit | 0457b4b6da1daf4f852bac19960542b1134ab836 (patch) | |
tree | 78cb7208512dd3f20d3609bda7e1d8a567d1997a | |
parent | c372b1eb75961a8b0fd9b204de5b8040a55d39c2 (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 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... */ |