Ver Fonte

fixup! Bot linking: Try each IP returned from DNS.

Bryan Drewery há 5 meses atrás
pai
commit
246088b433
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      src/dcc.cc

+ 4 - 0
src/dcc.cc

@@ -391,6 +391,10 @@ failed_link(int idx)
 static void
 cont_link(int idx, char *buf, int ii)
 {
+  if (dcc[idx].u.bot->di != NULL) {
+    free_dns_info(dcc[idx].u.bot->di);
+    dcc[idx].u.bot->di = NULL;
+  }
   /* If we're already connected somewhere, unlink and idle a sec */
   for (int i = 0; i < dcc_total; i++) {
     if (unlikely(dcc[i].type && (dcc[i].type == &DCC_BOT) && (!bot_aggressive_to(dcc[i].user)))) {