mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
prevent possible seg fault (issue #5502)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
rtp.c
2
rtp.c
@@ -342,7 +342,7 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp)
|
|||||||
unsigned int rtcpdata[1024];
|
unsigned int rtcpdata[1024];
|
||||||
char iabuf[INET_ADDRSTRLEN];
|
char iabuf[INET_ADDRSTRLEN];
|
||||||
|
|
||||||
if (!rtp->rtcp)
|
if (!rtp || !rtp->rtcp)
|
||||||
return &null_frame;
|
return &null_frame;
|
||||||
|
|
||||||
len = sizeof(sin);
|
len = sizeof(sin);
|
||||||
|
Reference in New Issue
Block a user