[asterisk-commits] jrose: trunk r344610 - in /trunk: ./ main/pbx.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Nov 11 09:47:43 CST 2011
Author: jrose
Date: Fri Nov 11 09:47:39 2011
New Revision: 344610
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=344610
Log:
Fix a segmentation fault when using an extension with CID matching and no CID.
Attempting to call an extension which used Caller ID matching with a channel that
has an empty caller id string would result in a segmentation fault.
(closes issue ASTERISK-18392
Reported By: Ales Zelenik
........
Merged revisions 344608 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 344609 from http://svn.asterisk.org/svn/asterisk/branches/10
Modified:
trunk/ (props changed)
trunk/main/pbx.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/pbx.c?view=diff&rev=344610&r1=344609&r2=344610
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Fri Nov 11 09:47:39 2011
@@ -2614,7 +2614,7 @@
prof_id = ast_add_profile("ext_match", 0);
}
ast_mark(prof_id, 1);
- i = _extension_match_core(pattern, data, mode);
+ i = _extension_match_core(ast_strlen_zero(pattern) ? "" : pattern, ast_strlen_zero(data) ? "" : data, mode);
ast_mark(prof_id, 0);
return i;
}
More information about the asterisk-commits
mailing list