Commits

Anonymous committed 82b787d

[svn] - avoid some potential NULL dereferencing

  • Participants
  • Parent commits fe0915f

Comments (0)

Files changed (3)

+nenolod     2007/03/05 18:41:14 UTC	(20070305-3245)
+  Log:
+  - fix a typo
+  
+
+  Changes:	Modified:
+  +1 -1		trunk/libcharybdis/poll.c (File Modified) 
+
+
 nenolod     2007/03/05 18:40:39 UTC	(20070305-3243)
   Log:
   - rework poll a bit for the MAXCONNECTIONS changes.
-#define SERNO "20070305-3243"
+#define SERNO "20070305-3245"

libcharybdis/commio.c

  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: commio.c 3239 2007-03-05 17:41:40Z jilles $
+ *  $Id: commio.c 3247 2007-03-05 18:42:24Z nenolod $
  */
 
 #include "libcharybdis.h"
 	 * re-opening it
 	 */
 	s_assert(!opening);
-	while (highest_fd >= 0 && comm_locate_fd(fd)->flags.open) /* XXX */
+	while (highest_fd >= 0 && comm_locate_fd(fd) != NULL)
 		highest_fd--;
 }