1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 17:23:13 +02:00

- Showing even more SSL server errors now, hopefully all of them, also changed the

error notice a bit so it's much more like non-SSL server link errors. Reported by
  vonitsanet (#0003150).
This commit is contained in:
Bram Matthys
2006-12-19 19:37:41 +00:00
parent 0f53a33401
commit ef8ffdda04
2 changed files with 16 additions and 1 deletions
+3
View File
@@ -1423,3 +1423,6 @@
(#0003143).
** 3.2.6-rc2 release **
- Fixed possible crash with using quarantine, reported by Sephiroth (#0003151).
- Showing even more SSL server errors now, hopefully all of them, also changed the
error notice a bit so it's much more like non-SSL server link errors. Reported by
vonitsanet (#0003150).
+13 -1
View File
@@ -670,7 +670,19 @@ static int fatal_ssl_error(int ssl_error, int where, aClient *sptr)
char *myerr = ssl_errstr;
if (ssl_error == SSL_ERROR_SYSCALL)
myerr = STRERROR(errtmp);
sendto_failops_whoare_opers("Closing link: SSL_connect(): %s - %s", myerr, get_client_name(sptr, FALSE));
/* 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);
} else
if ((IsServer(sptr) || (sptr->serv && sptr->serv->conf)) && (where != SAFE_SSL_WRITE))
{
/* if server (either judged by IsServer() or clearly an outgoing connect),
* 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_failops_whoare_opers("Closing link: %s: %s - %s", ssl_func, ssl_errstr, get_client_name(sptr, FALSE)); */
}
if (errtmp)