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

* Ported [2766] to 1.2.10
* Fixed a potential dns socket leak. (might fix #230)


svn: 2767

Bryan Drewery 20 лет назад
Родитель
Сommit
cad02ca65e
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      doc/UPDATES
  2. 1 0
      src/adns.c

+ 1 - 0
doc/UPDATES

@@ -17,6 +17,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * cmd_chhandle can no longer be used on bots. (fixes #224)
 * cmd_chhandle can no longer be used on bots. (fixes #224)
 * Revised help listing for 'auth-chan' in 'help set'. (fixes #229)
 * Revised help listing for 'auth-chan' in 'help set'. (fixes #229)
 * Fixed an invalid socket warning with failed relay. (fixes #216)
 * Fixed an invalid socket warning with failed relay. (fixes #216)
+* Fixed a potential dns socket leak. (might fix #230)
 
 
 1.2.9
 1.2.9
 * Fixed cmd_[un]stick not properly using numbers for channel masks. (#160)
 * Fixed cmd_[un]stick not properly using numbers for channel masks. (#160)

+ 1 - 0
src/adns.c

@@ -271,6 +271,7 @@ static int get_dns_idx()
 
 
           if (dns_idx < 0) {
           if (dns_idx < 0) {
            putlog(LOG_SERV, "*", "NO MORE DCC CONNECTIONS -- Can't create dns connection.");
            putlog(LOG_SERV, "*", "NO MORE DCC CONNECTIONS -- Can't create dns connection.");
+           killsock(sock);
            return 1;
            return 1;
           }
           }
           sdprintf("dns_idx: %d", dns_idx);
           sdprintf("dns_idx: %d", dns_idx);