Ver código fonte

* Fixed a problem with accepting new telnet connections.

svn: 1962
Bryan Drewery 21 anos atrás
pai
commit
363634fc13
2 arquivos alterados com 3 adições e 1 exclusões
  1. 1 0
      doc/UPDATES
  2. 2 1
      src/dcc.c

+ 1 - 0
doc/UPDATES

@@ -53,6 +53,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed, or
 * Setting -take now automatically sets +fastop as well (#13).
 * Added cmd_version (does same as .botversion)
 * Fixed userfile becoming desynced during transfer; A bot downloading a userfile would miss changes made during the transfer. (#11)
+* Fixed a problem with accepting new telnet connections.
 
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 2 - 1
src/dcc.c

@@ -1232,10 +1232,11 @@ dcc_telnet(int idx, char *buf, int ii)
   int sock = answer(dcc[idx].sock, s, &ip, &port, 0);
 
   while ((sock == -1) && (errno == EAGAIN))
-    sock = answer(sock, s, &ip, &port, 0);
+    sock = answer(dcc[idx].sock, s, &ip, &port, 0);
 /*. ssl_link ACCEPT_SSL should go here!!!! */
   if (sock < 0) {
     putlog(LOG_MISC, "*", DCC_FAILED, strerror(errno));
+//    killsock(dcc[idx].sock);
     return;
   }
   /* Buffer data received on this socket.  */