From: Mark Spencer Date: Mon, 7 Apr 2003 18:45:53 +0000 (+0000) Subject: Fix phone crash X-Git-Tag: 0.4.0~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=736bb7c6dc41bb4a05a92affc8447f483ac847c9;p=thirdparty%2Fasterisk.git Fix phone crash git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@768 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_phone.c b/channels/chan_phone.c index b0a54443af..9ca5a452ba 100755 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -584,6 +584,8 @@ static int phone_write(struct ast_channel *ast, struct ast_frame *frame) expected=4; } else { res = phone_write_buf(p, pos, expected, maxfr); + if (res > 0) + res = 0; } if (res != expected) { if (errno != EAGAIN) {