Bryan Drewery 21 yıl önce
ebeveyn
işleme
5224d8a8d4
3 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. 2 0
      src/adns.c
  2. 2 2
      src/dcc.c
  3. 1 0
      src/net.c

+ 2 - 0
src/adns.c

@@ -367,6 +367,8 @@ int egg_dns_reverse(const char *ip, int timeout, dns_callback_t callback, void *
 	char buf[512], *reversed_ip;
 	char buf[512], *reversed_ip;
 	int i, len, cache_id;
 	int i, len, cache_id;
 
 
+	sdprintf("egg_dns_reverse(%s, %d)", ip, timeout);
+
 	if (!is_dotted_ip(ip)) {
 	if (!is_dotted_ip(ip)) {
 		/* If it's not a valid ip, don't even make the request. */
 		/* If it's not a valid ip, don't even make the request. */
 		callback(-1, client_data, ip, NULL);
 		callback(-1, client_data, ip, NULL);

+ 2 - 2
src/dcc.c

@@ -1238,14 +1238,14 @@ dcc_telnet(int idx, char *buf, int ii)
   char x[1024] = "";
   char x[1024] = "";
   int i;
   int i;
 
 
+  putlog(LOG_DEBUG, "*", "Telnet connection: %s/%d", s, port);
+
   sprintf(x, "-telnet!telnet@%s", iptostr(htonl(ip)));
   sprintf(x, "-telnet!telnet@%s", iptostr(htonl(ip)));
   if (match_ignore(x) || detect_telnet_flood(x)) {
   if (match_ignore(x) || detect_telnet_flood(x)) {
     killsock(sock);
     killsock(sock);
     return;
     return;
   }
   }
 
 
-  putlog(LOG_DEBUG, "*", "Telnet connection: %s/%d", s, port);
-
   i = new_dcc(&DCC_IDENTWAIT, 0);
   i = new_dcc(&DCC_IDENTWAIT, 0);
 
 
   dcc[i].sock = sock;
   dcc[i].sock = sock;

+ 1 - 0
src/net.c

@@ -373,6 +373,7 @@ int allocsock(int sock, int options)
       socklist[i].okey[0] = 0;
       socklist[i].okey[0] = 0;
       socklist[i].ikey[0] = 0;
       socklist[i].ikey[0] = 0;
       socks_total++;
       socks_total++;
+      sdprintf("allocsock(%d) = %d", sock, i);
       return i;
       return i;
     }
     }
   }
   }