Explorar o código

* Fix SSL connections breaking future server connections when they fail

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
ccfd10b731
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/mod/server.mod/servmsg.c

+ 1 - 0
src/mod/server.mod/servmsg.c

@@ -2031,6 +2031,7 @@ static void server_dns_callback(int id, void *client_data, const char *host, bd:
     if (ssl_use) { /* kyotou */
     if (ssl_use) { /* kyotou */
       if (net_switch_to_ssl(serv) == 0) {
       if (net_switch_to_ssl(serv) == 0) {
         putlog(LOG_SERV, "*", "SSL Failed to connect to %s (Error while switching to SSL)", dcc[servidx].host);
         putlog(LOG_SERV, "*", "SSL Failed to connect to %s (Error while switching to SSL)", dcc[servidx].host);
+        trying_server = 0;
         lostdcc(servidx);
         lostdcc(servidx);
         return;
         return;
       }
       }