1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-01 15:46:37 +02:00

- Fixed notices to opers about server delinks not being broadcasted to all

other servers if they were on SSL links. Reported by chotaire (#0003957).
This commit is contained in:
Bram Matthys
2010-09-19 14:10:43 +00:00
parent ef7a94164c
commit 17c97c8442
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -2141,3 +2141,5 @@
- Add a modules section to the documentation. This was created to put
all documentation specific to the m_post module in one, easy to find
place. The documentation on m_post is likely incomplete, however.
- Fixed notices to opers about server delinks not being broadcasted to all
other servers if they were on SSL links. Reported by chotaire (#0003957).
+4 -2
View File
@@ -695,6 +695,7 @@ static int fatal_ssl_error(int ssl_error, int where, aClient *sptr)
/* sendto_failops_whoare_opers("Closing link: SSL_connect(): %s - %s", myerr, get_client_name(sptr, FALSE)); */
sendto_umode(UMODE_OPER, "Lost connection to %s: %s: %s",
get_client_name(sptr, FALSE), ssl_func, myerr);
/* This is a connect() that fails, we don't broadcast that for non-SSL either (noisy) */
} else
if ((IsServer(sptr) || (sptr->serv && sptr->serv->conf)) && (where != SAFE_SSL_WRITE))
{
@@ -702,8 +703,9 @@ static int fatal_ssl_error(int ssl_error, int where, aClient *sptr)
* and not writing (since otherwise deliver_it will take care of the error), THEN
* send a closing link error...
*/
sendto_umode(UMODE_OPER, "Lost connection to %s: %s: %s",
get_client_name(sptr, FALSE), ssl_func, ssl_errstr);
sendto_locfailops("Lost connection to %s: %s: %s", get_client_name(sptr, FALSE), ssl_func, ssl_errstr);
sendto_serv_butone(&me, ":%s GLOBOPS :Lost connection to server %s: %s: %s",
me.name, get_client_name(sptr, FALSE), ssl_func, ssl_errstr);
/* sendto_failops_whoare_opers("Closing link: %s: %s - %s", ssl_func, ssl_errstr, get_client_name(sptr, FALSE)); */
}