From: Russell Bryant Date: Mon, 30 Jul 2007 19:39:52 +0000 (+0000) Subject: Fix the return value of ast_agi_fdprintf() to include the result from ast_carefulwrite() X-Git-Tag: 1.6.0-beta1~3^2~1861 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=048bb3d9e3d5e4f48794f898e1606cc427a9d503;p=thirdparty%2Fasterisk.git 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 --- diff --git a/res/res_agi.c b/res/res_agi.c index 37e3ca9abc..dead361e2b 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.