diff options
author | Kinsey Moore <kmoore@digium.com> | 2012-10-12 21:58:29 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2012-10-12 21:58:29 +0000 |
commit | 0eab8b669d898b8f6acece773556a8f057a0b4cd (patch) | |
tree | 0630a03b9d63a9eec628f85cc083c7837f892d90 /cdr | |
parent | c7b23cbb0af1928014cb283c511b9dec48488163 (diff) |
Avoid a segfault on invalid format names
If a format name was not found by ast_getformatbyname, a NULL pointer
would be passed into ast_format_rate and immediately dereferenced.
This ensures that a valid pointer is used since the structure is
already allocated on the stack.
(closes issue DPH-523)
Reported-by: Steve Pitts
........
Merged revisions 374932 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'cdr')
0 files changed, 0 insertions, 0 deletions