From: Matthew Nicholson Date: Thu, 1 Jul 2010 19:34:47 +0000 (+0000) Subject: Properly handle failures of fax->start_session() X-Git-Tag: 11.0.0-beta1~2749 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6acfd9f20a86ce8726e3c4416bce09b3b7ce0cc2;p=thirdparty%2Fasterisk.git 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 --- 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;