]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Revert change in revision 71656, even though it fixed a bug, because many people...
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 30 Jul 2007 18:40:54 +0000 (18:40 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 30 Jul 2007 18:40:54 +0000 (18:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@77782 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c

index 8a142c14cd219904bc472013dcb5eeaf21652c69..53cafd58c3ec24fddc07cd6fc5f4cb03ca2f07ee 100644 (file)
@@ -1103,7 +1103,8 @@ static int handle_exec(struct ast_channel *chan, AGI *agi, int argc, char **argv
        }
        fdprintf(agi->fd, "200 result=%d\n", res);
 
-       return res >= 0 ? RESULT_SUCCESS : RESULT_FAILURE;
+       /* Even though this is wrong, users are depending upon this result. */
+       return res;
 }
 
 static int handle_setcallerid(struct ast_channel *chan, AGI *agi, int argc, char **argv)