diff options
author | Alexandr Anikin <may@telecom-service.ru> | 2011-12-02 18:03:31 +0000 |
---|---|---|
committer | Alexandr Anikin <may@telecom-service.ru> | 2011-12-02 18:03:31 +0000 |
commit | db0ed2e5c8adbaf2c46a9dacdc9a29784f75769f (patch) | |
tree | 741093de841b93615906f7bd1fd78762e7dbe163 /addons/chan_ooh323.c | |
parent | 83cd844b82ef1a415a53eb7fe4cc30aac30f2ee7 (diff) |
Merged revisions 346763 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/10
................
r346763 | may | 2011-12-02 20:42:32 +0400 (Fri, 02 Dec 2011) | 14 lines
Merged revisions 346762 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r346762 | may | 2011-12-02 20:19:19 +0400 (Fri, 02 Dec 2011) | 7 lines
process null frame pointer returned by ast_rtp_instance_read correctly
(closes issue ASTERISK-16697)
Reported by: under
Patches:
segfault.diff (License #5871) patch uploaded by under
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@346777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons/chan_ooh323.c')
-rw-r--r-- | addons/chan_ooh323.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index bca7a8b96..988778b31 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -4579,7 +4579,7 @@ struct ast_frame *ooh323_rtp_read(struct ast_channel *ast, struct ooh323_pvt *p) f = &null_frame; } - if (p->owner && !p->faxmode && (f->frametype == AST_FRAME_VOICE)) { + if (f && p->owner && !p->faxmode && (f->frametype == AST_FRAME_VOICE)) { /* We already hold the channel lock */ if (!(ast_format_cap_iscompatible(p->owner->nativeformats, &f->subclass.format))) { ast_debug(1, "Oooh, voice format changed to %s\n", ast_getformatname(&f->subclass.format)); |