diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-18 16:46:44 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-18 16:46:44 +0000 |
commit | 271908cfc802b5f1525c19f6d5e9e97fb5b869a2 (patch) | |
tree | 333ae30f1005cee5821ab3d41cf6728c9de83ae3 /rtp.c | |
parent | bbcc62c3998f0c5d0410cf4cca29090cd688b111 (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-x | rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |