Skip to content
Snippets Groups Projects
Commit 01c96e65 authored by Mark Spencer's avatar Mark Spencer
Browse files

Don't try to read from an rtcp if there isn't one

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent e74c2887
No related merge requests found
......@@ -325,7 +325,7 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp)
unsigned int rtcpdata[1024];
char iabuf[INET_ADDRSTRLEN];
if (!rtp)
if (!rtp || !rtp->rtcp)
return &null_frame;
len = sizeof(sin);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment