diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-27 20:58:20 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-27 20:58:20 +0000 |
commit | bcc9a5f84ccf93cf0b556d35af549fe41424c77e (patch) | |
tree | a41235b25ec3b94e31a953e2bda8fee87c7fa4cc /main | |
parent | 553077653c1e8df78995d40b08ebd16d43f2449f (diff) |
Merged revisions 209235 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r209235 | mmichelson | 2009-07-27 15:54:54 -0500 (Mon, 27 Jul 2009) | 5 lines
Gracefully handle malformed RTP text packets.
AST-2009-004
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@209238 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/rtp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c index f94902065..c77db1969 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -1834,6 +1834,9 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp) rtp->f.subclass = AST_FORMAT_T140; header_end = memchr(data, ((*data) & 0x7f), rtp->f.datalen); + if (header_end == NULL) { + return &ast_null_frame; + } header_end++; header_length = header_end - data; |