dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@114845 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
kpfleming 2008-04-29 18:58:48 +00:00
parent bcd5162d10
commit f11bdacca7
1 changed files with 1 additions and 1 deletions

View File

@ -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))