summaryrefslogtreecommitdiff
path: root/main/features.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-04-29 18:58:48 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-04-29 18:58:48 +0000
commitfc4390ac3702de3ad2f3436f25406b88a53dd5fe (patch)
tree9c87e441f3e15a093f32dda5ee2c564eb2e8b756 /main/features.c
parent8b1cb3ce5382d32feda0a4ad5ed68bfcf80f30b8 (diff)
fix this logic to actually be correct... the fd can't be *both* -1 and an array index to be checked in rfds/efds (bug found by gcc-4.3)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/features.c')
-rw-r--r--main/features.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/features.c b/main/features.c
index a5aa645ca..528d32b19 100644
--- a/main/features.c
+++ b/main/features.c
@@ -2421,7 +2421,7 @@ int manage_parkinglot(struct ast_parkinglot *curlot, fd_set *rfds, fd_set *efds,
for (x = 0; x < AST_MAX_FDS; x++) {
struct ast_frame *f;
- if ((chan->fds[x] == -1) && (!FD_ISSET(chan->fds[x], rfds) && !FD_ISSET(pu->chan->fds[x], efds)))
+ if ((chan->fds[x] == -1) || (!FD_ISSET(chan->fds[x], rfds) && !FD_ISSET(pu->chan->fds[x], efds)))
continue;
if (FD_ISSET(chan->fds[x], efds))