From 3b1bf702011c08401b97cee1017895dfcc7ee264 Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 6 Oct 2008 20:52:04 +0000 Subject: Dialplan functions should not actually return 0, unless they have modified the workspace. To signal an error (and no change to the workspace), -1 should be returned instead. (closes issue #13340) Reported by: kryptolus Patches: 20080827__bug13340__2.diff.txt uploaded by Corydon76 (license 14) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@146799 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_smdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/res_smdi.c') diff --git a/res/res_smdi.c b/res/res_smdi.c index 83a5e1f7c..406a740c9 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -1265,7 +1265,7 @@ static int smdi_msg_read(struct ast_channel *chan, char *cmd, char *data, char * return_error: ast_module_user_remove(u); - return 0; + return res; } static struct ast_custom_function smdi_msg_retrieve_function = { -- cgit v1.2.3