Преглед изворни кода

* Fix listen_all() not properly closing the requested dcc

Bryan Drewery пре 16 година
родитељ
комит
923bac0f77
1 измењених фајлова са 1 додато и 1 уклоњено
  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) {