diff options
author | Matthew Nicholson <mnicholson@digium.com> | 2010-07-01 19:34:47 +0000 |
---|---|---|
committer | Matthew Nicholson <mnicholson@digium.com> | 2010-07-01 19:34:47 +0000 |
commit | 6acfd9f20a86ce8726e3c4416bce09b3b7ce0cc2 (patch) | |
tree | be6d79b9595a03257969b82d92eb1e33c348f08b /res/res_fax.c | |
parent | 243d87038eba946357cbb5732656e2e46ec40b77 (diff) |
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
Diffstat (limited to 'res/res_fax.c')
-rw-r--r-- | res/res_fax.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |