[asterisk-commits] trunk r9065 - /trunk/res/res_clioriginate.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Feb 2 07:04:31 MST 2006
Author: oej
Date: Thu Feb 2 08:04:29 2006
New Revision: 9065
URL: http://svn.digium.com/view/asterisk?rev=9065&view=rev
Log:
Issue #6383 - Crash on CLI originate with missing channel argument
Modified:
trunk/res/res_clioriginate.c
Modified: trunk/res/res_clioriginate.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_clioriginate.c?rev=9065&r1=9064&r2=9065&view=diff
==============================================================================
--- trunk/res/res_clioriginate.c (original)
+++ trunk/res/res_clioriginate.c Thu Feb 2 08:04:29 2006
@@ -83,6 +83,10 @@
return RESULT_FAILURE;
}
chantech = strsep(&chandata, "/");
+ if (!chandata) {
+ ast_log(LOG_ERROR, "No dial string.\n");
+ return RESULT_SHOWUSAGE;
+ }
ast_pbx_outgoing_app(chantech, AST_FORMAT_SLINEAR, chandata, TIMEOUT * 1000, app, appdata, &reason, 1, NULL, NULL, NULL, NULL);
More information about the asterisk-commits
mailing list