[asterisk-commits] wdoekes: trunk r343951 - in /trunk: ./ pbx/pbx_config.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Nov 8 13:29:28 CST 2011
Author: wdoekes
Date: Tue Nov 8 13:29:25 2011
New Revision: 343951
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=343951
Log:
Fix crash when dialplan remove include is called with too few arguments.
"dialplan remove include x from y" crashed when the amount of arguments
was less than 6.
(closes issue ASTERISK-18762)
Reported by: Andrey Solovyev
Tested by: Andrey Solovyev
........
Merged revisions 343936 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 343944 from http://svn.asterisk.org/svn/asterisk/branches/10
Modified:
trunk/ (props changed)
trunk/pbx/pbx_config.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/pbx/pbx_config.c
URL: http://svnview.digium.com/svn/asterisk/trunk/pbx/pbx_config.c?view=diff&rev=343951&r1=343950&r2=343951
==============================================================================
--- trunk/pbx/pbx_config.c (original)
+++ trunk/pbx/pbx_config.c Tue Nov 8 13:29:25 2011
@@ -87,7 +87,7 @@
return complete_dialplan_remove_include(a);
}
- if (strcmp(a->argv[4], "from"))
+ if (a->argc != 6 || strcmp(a->argv[4], "from"))
return CLI_SHOWUSAGE;
if (!ast_context_remove_include(a->argv[5], a->argv[3], registrar)) {
More information about the asterisk-commits
mailing list