summaryrefslogtreecommitdiff
path: root/rtp.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-06-18 16:46:44 +0000
committerMark Spencer <markster@digium.com>2005-06-18 16:46:44 +0000
commit01c96e65f6ef579ea957c339c3204c10786dccce (patch)
tree333ae30f1005cee5821ab3d41cf6728c9de83ae3 /rtp.c
parente74c288783f58162d375c691d5fbf559d9c883fb (diff)
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
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtp.c b/rtp.c
index a9ecd34a7..ea0523cd1 100755
--- a/rtp.c
+++ b/rtp.c
@@ -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);