Selaa lähdekoodia

* Fix listen_all() not properly closing the requested dcc

Bryan Drewery 16 vuotta sitten
vanhempi
commit
923bac0f77
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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) {