mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 10:28:32 +00:00
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:
@@ -139,9 +139,7 @@ int ast_agi_fdprintf(int fd, char *fmt, ...)
|
|||||||
if (agidebug)
|
if (agidebug)
|
||||||
ast_verbose("AGI Tx >> %s", buf->str);
|
ast_verbose("AGI Tx >> %s", buf->str);
|
||||||
|
|
||||||
ast_carefulwrite(fd, buf->str, buf->used, 100);
|
return ast_carefulwrite(fd, buf->str, buf->used, 100);
|
||||||
|
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* launch_netscript: The fastagi handler.
|
/* launch_netscript: The fastagi handler.
|
||||||
|
|||||||
Reference in New Issue
Block a user