[asterisk-commits] rmudgett: trunk r374778 - in /trunk: ./ main/pbx.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Oct 9 17:24:15 CDT 2012
Author: rmudgett
Date: Tue Oct 9 17:24:10 2012
New Revision: 374778
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=374778
Log:
Fix execution of 'i' extension due to uninitialized variable.
The fix for ASTERISK-18243 added code that could potentially use
dst_exten[] uninitialized. As a result the 'i' exten may not be executed
when it should.
(closes issue ASTERISK-20455)
Reported by: Richard Miller
Patches:
pbx-1.8.16.0.diff (license #5685) patch uploaded by Richard Miller
Made some cosmetic modifications.
........
Merged revisions 374758 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 374763 from http://svn.asterisk.org/svn/asterisk/branches/10
........
Merged revisions 374771 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
trunk/ (props changed)
trunk/main/pbx.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Modified: trunk/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/pbx.c?view=diff&rev=374778&r1=374777&r2=374778
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Tue Oct 9 17:24:10 2012
@@ -6026,6 +6026,9 @@
int invalid = 0;
int timeout = 0;
+ /* No digits pressed yet */
+ dst_exten[pos] = '\0';
+
/* loop on priorities in this context/exten */
while (!(res = ast_spawn_extension(c, ast_channel_context(c), ast_channel_exten(c), ast_channel_priority(c),
S_COR(ast_channel_caller(c)->id.number.valid, ast_channel_caller(c)->id.number.str, NULL),
More information about the asterisk-commits
mailing list