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:
parent
bbcc62c399
commit
271908cfc8
1 changed files with 1 additions and 1 deletions
2
rtp.c
2
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);
|
||||
|
|
Reference in a new issue