diff options
author | Jonathan Rose <jrose@digium.com> | 2014-08-05 13:59:53 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2014-08-05 13:59:53 +0000 |
commit | 2e350d6bd670b8dc92427706df333ba922368336 (patch) | |
tree | e8fd9100e61e4e49d51411940a7075d03753abab /main/format.c | |
parent | e2d8fce2a3b2b07a7b8e32bfc1228738fb637c19 (diff) |
chan_iax2: Fix a crash that occurs when using allow=all for an IAX2 peer
Or any combination of codecs that includes Opus.
ASTERISK-24107 #close
Review: https://reviewboard.asterisk.org/r/3885/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@420028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/format.c')
-rw-r--r-- | main/format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/format.c b/main/format.c index 83206f28c..e54fca01b 100644 --- a/main/format.c +++ b/main/format.c @@ -247,7 +247,7 @@ enum ast_format_cmp_res ast_format_cmp(const struct ast_format *format1, const s interface = format1->interface ? format1->interface : format2->interface; - if (interface) { + if (interface && interface->format_cmp) { return interface->format_cmp(format1, format2); } |