aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/res_agi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 37e3ca9ab..dead361e2 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -139,9 +139,7 @@ int ast_agi_fdprintf(int fd, char *fmt, ...)
if (agidebug)
ast_verbose("AGI Tx >> %s", buf->str);
- ast_carefulwrite(fd, buf->str, buf->used, 100);
-
- return res;
+ return ast_carefulwrite(fd, buf->str, buf->used, 100);
}
/* launch_netscript: The fastagi handler.