[svn] - avoid some potential NULL dereferencing

This commit is contained in:
nenolod 2007-03-05 10:42:24 -08:00
parent c18de29d18
commit a6a30f6f7b
3 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,12 @@
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.

View file

@ -1 +1 @@
#define SERNO "20070305-3243"
#define SERNO "20070305-3245"

View file

@ -21,7 +21,7 @@
* 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"
@ -740,7 +740,7 @@ fdlist_update_biggest(int fd, int opening)
* 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--;
}