Explorar o código

* Fixed a bot timeout/eof double killsock

svn: 1170
Bryan Drewery %!s(int64=22) %!d(string=hai) anos
pai
achega
6b0dbf7e24
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/dcc.c

+ 2 - 1
src/dcc.c

@@ -264,7 +264,8 @@ failed_link(int idx)
   }
   if (dcc[idx].u.bot->numver >= (-1))
     putlog(LOG_BOTS, "*", DCC_LINKFAIL, dcc[idx].nick);
-  killsock(dcc[idx].sock);
+  if (dcc[idx].sock != -1)
+    killsock(dcc[idx].sock);
   strcpy(s, dcc[idx].nick);
   lostdcc(idx);
   autolink_cycle(s);            /* Check for more auto-connections */