[asterisk-commits] rmudgett: branch rmudgett/iax_fracks r419933 - /team/rmudgett/iax_fracks/chan...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Aug 2 01:10:59 CDT 2014
Author: rmudgett
Date: Sat Aug 2 01:10:55 2014
New Revision: 419933
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=419933
Log:
chan_iax2: Fix uninitialized ast_str variable in IAXPEER function.
Modified:
team/rmudgett/iax_fracks/channels/chan_iax2.c
Modified: team/rmudgett/iax_fracks/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/iax_fracks/channels/chan_iax2.c?view=diff&rev=419933&r1=419932&r2=419933
==============================================================================
--- team/rmudgett/iax_fracks/channels/chan_iax2.c (original)
+++ team/rmudgett/iax_fracks/channels/chan_iax2.c Sat Aug 2 01:10:55 2014
@@ -14386,7 +14386,7 @@
} else if (!strcasecmp(colname, "callerid_num")) {
ast_copy_string(buf, peer->cid_num, len);
} else if (!strcasecmp(colname, "codecs")) {
- struct ast_str *codec_buf;
+ struct ast_str *codec_buf = ast_str_alloca(256);
iax2_getformatname_multiple(peer->capability, &codec_buf);
ast_copy_string(buf, ast_str_buffer(codec_buf), len);
More information about the asterisk-commits
mailing list