瀏覽代碼

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

Bryan Drewery 5 月之前
父節點
當前提交
246088b433
共有 1 個文件被更改,包括 4 次插入0 次删除
  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)))) {