From 6acfd9f20a86ce8726e3c4416bce09b3b7ce0cc2 Mon Sep 17 00:00:00 2001 From: Matthew Nicholson <mnicholson@digium.com> Date: Thu, 1 Jul 2010 19:34:47 +0000 Subject: [PATCH] Properly handle failures of fax->start_session() FAX-177 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@273464 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_fax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_fax.c b/res/res_fax.c index cae96603fa..0aedd2decf 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; -- GitLab