aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-25 22:58:34 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-25 22:58:34 +0000
commit358d6021cf9ae62759510e048b321b0704156d16 (patch)
treeaeff1aeb4c98e8a712c23dd2f9f274bac75b208a
parent757aadd53d3f0334f03d4872a7dbdd2258c8d09c (diff)
make sure a reponse is sent when setting the EventMask to on (bug #4799)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6214 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xmanager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/manager.c b/manager.c
index 306c21795..4dfefb3ed 100755
--- a/manager.c
+++ b/manager.c
@@ -402,7 +402,7 @@ static int ast_strings_to_mask(char *string)
else if (!strcasecmp(string, "off") || ast_false(string))
ret = 0;
else if (!strcasecmp(string, "on") || ast_true(string))
- ret = -1;
+ ret = 1;
else {
ret = 0;
for (x=0; x<sizeof(perms) / sizeof(perms[0]); x++) {