Просмотр исходного кода

* Fix listen_all() not properly closing the requested dcc

Bryan Drewery 16 лет назад
Родитель
Сommit
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++) {
   for (ii = 0; ii < dcc_total; ii++) {
     if (dcc[ii].type && (dcc[ii].type == &DCC_TELNET) && (dcc[ii].port == port) &&
     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;
       idx = ii;
 
 
       if (off) {
       if (off) {