diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-01 00:57:42 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-01 00:57:42 +0000 |
commit | 0784001afdf2d9e6f7df07f699b6eb15d50b4b6a (patch) | |
tree | 527b0b936f5f93923061a3e12a7ccf0bb97f612b /rtp.c | |
parent | e0941c4d8f998fcbf20b335ed2ec4a3fe72d567d (diff) |
prevent possible seg fault (issue #5502)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@6919 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-x | rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -342,7 +342,7 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp) unsigned int rtcpdata[1024]; char iabuf[INET_ADDRSTRLEN]; - if (!rtp->rtcp) + if (!rtp || !rtp->rtcp) return &null_frame; len = sizeof(sin); |