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

Fix "called a function you should not call" server linking error that

happens if all of the following are true:
1) You use link::outgoing::tls-options (or ssl-options)
2) You do a REHASH -tls (or REHASH -ssl)
3) You do NOT do a regular REHASH
4) You try to link to the server in such a link block (outgoing!)

In other words: the problem may happen if you try to link after
a Let's Encrypt cert renewal, unless there has been a regular
REHASH between that and the outgoing linking attempt.

Reported by k4be and Le_Coyoto in https://bugs.unrealircd.org/view.php?id=5607
This commit is contained in:
Bram Matthys
2020-06-26 15:11:01 +02:00
parent faeb644b82
commit ca6630a2fb
+1 -1
View File
@@ -625,7 +625,7 @@ void reinit_ssl(Client *client)
{
if (link->tls_options)
{
tmp = init_ctx(link->tls_options, 1);
tmp = init_ctx(link->tls_options, 0);
if (!tmp)
{
config_error("SSL Reload partially failed. link::outgoing::tls-options error in link %s { }, see above",