Archived
14
0
Fork 0

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
This commit is contained in:
markster 2005-06-18 16:46:44 +00:00
parent bbcc62c399
commit 271908cfc8

2
rtp.c
View file

@ -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);