From 65145d4e188d45bb9b8012fd865636137733ba9e Mon Sep 17 00:00:00 2001 From: mnicholson Date: Thu, 1 Jul 2010 19:34:47 +0000 Subject: Properly handle failures of fax->start_session() FAX-177 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273464 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_fax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res') diff --git a/res/res_fax.c b/res/res_fax.c index cae96603f..0aedd2dec 100644 --- a/res/res_fax.c +++ b/res/res_fax.c @@ -901,7 +901,7 @@ static int generic_fax_exec(struct ast_channel *chan, struct ast_fax_session_det /* handle frames for the session */ ms = 1000; - while ((ms > -1) && (timeout > 0)) { + while ((res > -1) && (ms > -1) && (timeout > 0)) { struct ast_channel *ready_chan; int ofd, exception; -- cgit v1.2.3