Explorar el Código

* Fix listen_all() not properly closing the requested dcc

Bryan Drewery hace 16 años
padre
commit
923bac0f77
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/dccutil.c

+ 1 - 1
src/dccutil.c

@@ -851,7 +851,7 @@ listen_all(port_t lport, bool off)
 
   for (ii = 0; ii < dcc_total; ii++) {
     if (dcc[ii].type && (dcc[ii].type == &DCC_TELNET) && (dcc[ii].port == port) &&
-           (!strcmp(dcc[i].nick, "(telnet)") || !strcmp(dcc[i].nick, "(telnet6)"))) {
+           (!strcmp(dcc[ii].nick, "(telnet)") || !strcmp(dcc[ii].nick, "(telnet6)"))) {
       idx = ii;
 
       if (off) {