diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-03 18:49:34 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-03 18:49:34 +0000 |
commit | ca0676b4334ae1ee30665b60b51805b7ae7139b3 (patch) | |
tree | cf437086f1ee645e4d519eb8343fbad60885c3c8 /channels/chan_zap.c | |
parent | a05d347c35d511d43a8fd86444805968dbdd27e7 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@105574 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index c48f811a8..aa81a1e51 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; } |