make sure a reponse is sent when setting the EventMask to on (bug #4799)
authorRussell Bryant <russell@russellbryant.com>
Mon, 25 Jul 2005 22:58:34 +0000 (22:58 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 25 Jul 2005 22:58:34 +0000 (22:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6214 65c4cc65-6c06-0410-ace0-fbb531ad65f3

manager.c

index 306c217..4dfefb3 100755 (executable)
--- 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++) {