From 048bb3d9e3d5e4f48794f898e1606cc427a9d503 Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Mon, 30 Jul 2007 19:39:52 +0000
Subject: [PATCH] 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
---
 res/res_agi.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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