[asterisk-commits] kpfleming: trunk r114845 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 29 13:58:49 CDT 2008


Author: kpfleming
Date: Tue Apr 29 13:58:48 2008
New Revision: 114845

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114845
Log:
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)


Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svn.digium.com/view/asterisk/trunk/main/features.c?view=diff&rev=114845&r1=114844&r2=114845
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Tue Apr 29 13:58:48 2008
@@ -2421,7 +2421,7 @@
 			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))




More information about the asterisk-commits mailing list