aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_agi.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-30 19:39:52 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-30 19:39:52 +0000
commit654be731b0de2bc679e59f3b5cb0961a36484348 (patch)
tree538e0528f733a24f0e64527d7ce915b81c83e81c /res/res_agi.c
parent0e8d4d1cd497a5c14f8a3b43acf8d3166ac75011 (diff)
Fix the return value of ast_agi_fdprintf() to include the result from ast_carefulwrite()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77792 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_agi.c')
-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.