[Shadowirc-commits] CVS: shadowirc/src/lib TCPStuff.c,1.3,1.4
Status: Alpha
Brought to you by:
dshadow
From: Landon F. <la...@us...> - 2002-02-23 22:46:39
|
Update of /cvsroot/shadowirc/shadowirc/src/lib In directory usw-pr-cvs1:/tmp/cvs-serv12398 Modified Files: TCPStuff.c Log Message: Fix close() bug in fd_remove fd should be closed -before- the fd variable is modified. Index: TCPStuff.c =================================================================== RCS file: /cvsroot/shadowirc/shadowirc/src/lib/TCPStuff.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TCPStuff.c 20 Feb 2002 04:48:39 -0000 1.3 --- TCPStuff.c 23 Feb 2002 22:46:36 -0000 1.4 *************** *** 293,296 **** --- 293,297 ---- FD_CLR(fd, &readfds); + close(fd); if (fd == fd_max && fd_max != 0) { do *************** *** 299,303 **** fd_max = fd; } - close(fd); return -1; --- 300,303 ---- |