aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-18 16:46:44 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-18 16:46:44 +0000
commit271908cfc802b5f1525c19f6d5e9e97fb5b869a2 (patch)
tree333ae30f1005cee5821ab3d41cf6728c9de83ae3 /rtp.c
parentbbcc62c3998f0c5d0410cf4cca29090cd688b111 (diff)
Don't try to read from an rtcp if there isn't one
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5934 f38db490-d61c-443f-a65b-d21fe96a405b
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);