[asterisk-commits] russell: trunk r64469 - /trunk/pbx/pbx_dundi.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue May 15 15:57:01 MST 2007


Author: russell
Date: Tue May 15 17:57:01 2007
New Revision: 64469

URL: http://svn.digium.com/view/asterisk?view=rev&rev=64469
Log:
Make sure that DUNDIRESULT is given an ID.

Modified:
    trunk/pbx/pbx_dundi.c

Modified: trunk/pbx/pbx_dundi.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_dundi.c?view=diff&rev=64469&r1=64468&r2=64469
==============================================================================
--- trunk/pbx/pbx_dundi.c (original)
+++ trunk/pbx/pbx_dundi.c Tue May 15 17:57:01 2007
@@ -3985,6 +3985,11 @@
 	parse = ast_strdupa(data);
 
 	AST_STANDARD_APP_ARGS(args, parse);
+
+	if (ast_strlen_zero(args.id)) {
+		ast_log(LOG_ERROR, "A result ID must be provided to DUNDIRESULT\n");
+		goto finish;
+	}
 
 	if (ast_strlen_zero(args.resultnum)) {
 		ast_log(LOG_ERROR, "A result number must be given to DUNDIRESULT!\n");



More information about the asterisk-commits mailing list