[svn-commits] rmudgett: branch 13 r420881 - /branches/13/channels/chan_sip.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Aug 12 18:43:55 CDT 2014
Author: rmudgett
Date: Tue Aug 12 18:43:51 2014
New Revision: 420881
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=420881
Log:
chan_sip: Fix type mismatch when the format is changed.
Symptom is most likely an invalid ao2 object bad magic number message or a
less likely crash.
Modified:
branches/13/channels/chan_sip.c
Modified: branches/13/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/channels/chan_sip.c?view=diff&rev=420881&r1=420880&r2=420881
==============================================================================
--- branches/13/channels/chan_sip.c (original)
+++ branches/13/channels/chan_sip.c Tue Aug 12 18:43:51 2014
@@ -4736,12 +4736,12 @@
switch (option) {
case AST_OPTION_FORMAT_READ:
if (p->rtp) {
- res = ast_rtp_instance_set_read_format(p->rtp, (struct ast_format *) data);
+ res = ast_rtp_instance_set_read_format(p->rtp, *(struct ast_format **) data);
}
break;
case AST_OPTION_FORMAT_WRITE:
if (p->rtp) {
- res = ast_rtp_instance_set_write_format(p->rtp, (struct ast_format *) data);
+ res = ast_rtp_instance_set_write_format(p->rtp, *(struct ast_format **) data);
}
break;
case AST_OPTION_DIGIT_DETECT:
More information about the svn-commits
mailing list