[asterisk-commits] jrose: branch 1.8 r344608 - /branches/1.8/main/pbx.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Nov 11 09:21:54 CST 2011
Author: jrose
Date: Fri Nov 11 09:21:50 2011
New Revision: 344608
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=344608
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
Modified:
branches/1.8/main/pbx.c
Modified: branches/1.8/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/pbx.c?view=diff&rev=344608&r1=344607&r2=344608
==============================================================================
--- branches/1.8/main/pbx.c (original)
+++ branches/1.8/main/pbx.c Fri Nov 11 09:21:50 2011
@@ -2493,7 +2493,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