Fix the return value of ast_agi_fdprintf() to include the result from ast_carefulwrite()

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-07-30 19:39:52 +00:00
parent 38bb9400de
commit 048bb3d9e3

View File

@@ -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.