Kaynağa Gözat

* Fixed FD overflow problem in botlinking...

svn: 1096
Bryan Drewery 22 yıl önce
ebeveyn
işleme
df96555235
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/dcc.c

+ 1 - 0
doc/UPDATES

@@ -38,6 +38,7 @@ This is a summary of ChangeLog basically.
 34.Bots no longer have userflag +b, they are distinguished in whois by BOTNICK instead of HANDLE.
 35.Added cmd_matchbot for matching bots, cmd_match now only does users.
 36.Fixed +d|d bots still being opped.
+37.Fixed a bug with bot links that was causing too many open files errors.
 
 1.1.7
 

+ 1 - 1
src/dcc.c

@@ -378,8 +378,8 @@ static void cont_link(int idx, char *buf, int ii)
     socklist[snum].encstatus = 1;
     socklist[snum].gz = 1;
   } else {
-    lostdcc(idx);
     killsock(dcc[idx].sock);
+    lostdcc(idx);
   }
   return;
 }