From: Russell Bryant Date: Mon, 3 Mar 2008 18:49:34 +0000 (+0000) Subject: Fix some code that was improperly changed in revision 104866 from issue #12079. X-Git-Tag: 1.6.0-beta7~241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0db8a98efeef484430b7b47d2c7dffd998ea7e14;p=thirdparty%2Fasterisk.git Fix some code that was improperly changed in revision 104866 from issue #12079. (closes issue #12129, reported by elguero, patched by me) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@105574 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index c48f811a82..aa81a1e51d 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -1148,7 +1148,7 @@ static int alloc_sub(struct zt_pvt *p, int x) { ZT_BUFFERINFO bi; int res; - if (p->subs[x].zfd < 0) { + if (p->subs[x].zfd >= 0) { ast_log(LOG_WARNING, "%s subchannel of %d already in use\n", subnames[x], p->channel); return -1; }