Przeglądaj źródła

* findanysnum() was stopping short by 1 in it's search for a socket

svn: 1498
Bryan Drewery 21 lat temu
rodzic
commit
2a1a267259
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/net.c

+ 1 - 1
src/net.c

@@ -1575,7 +1575,7 @@ int findanysnum(register int sock)
   register int i = 0;
 
   if (sock != -1)
-    for (i = 0; i < socks_total; i++)
+    for (i = 0; i <= socks_total; i++)
       if ((socklist[i].sock == sock) && !(socklist[i].flags & SOCK_UNUSED))
         return i;