libosmo-cc: Fix critical bug in RTCP handling

Upon an RTCP read event, read from RTCP socket and not from RTP socket.
This commit is contained in:
Andreas Eversberg
2023-03-26 12:03:53 +02:00
parent 28a297f97d
commit 5c20a3e8b7

View File

@@ -422,7 +422,7 @@ static int rtcp_listen_cb(struct osmo_fd *ofd, unsigned int when)
int rc;
if (when & OSMO_FD_READ) {
rc = rtcp_receive(media->rtp_ofd.fd);
rc = rtcp_receive(media->rtcp_ofd.fd);
if (rc < 0)
return rc;
}