Fix minor AGI buglet
authorMark Spencer <markster@digium.com>
Mon, 14 Jul 2003 16:17:16 +0000 (16:17 +0000)
committerMark Spencer <markster@digium.com>
Mon, 14 Jul 2003 16:17:16 +0000 (16:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1185 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_agi.c

index f03b8e9..7c7b653 100755 (executable)
@@ -402,6 +402,8 @@ static int handle_getdata(struct ast_channel *chan, AGI *agi, int argc, char *ar
                return RESULT_SUCCESS;
        else if (res == 1)
                fdprintf(agi->fd, "200 result=%s (timeout)\n", data);
+    else if (res < 0 )
+        fdprintf(agi->fd, "200 result=-1\n");
        else
                fdprintf(agi->fd, "200 result=%s\n", data);
        if (res >= 0)