mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 13:43:13 +02:00
refcount bug (also in 3.2.3-cvs)
This commit is contained in:
@@ -179,9 +179,15 @@ DLLFUNC CMD_FUNC(m_server)
|
||||
strcpy(xerrmsg, "Null servername");
|
||||
goto errlink;
|
||||
}
|
||||
for(link = conf_link; link; link = (ConfigItem_link *) link->next)
|
||||
if (!match(link->servername, servername))
|
||||
break;
|
||||
if (cptr->serv && cptr->serv->conf)
|
||||
{
|
||||
/* We already know what block we are dealing with (outgoing connect!) */
|
||||
link = cptr->serv->conf;
|
||||
} else {
|
||||
for(link = conf_link; link; link = (ConfigItem_link *) link->next)
|
||||
if (!match(link->servername, servername))
|
||||
break;
|
||||
}
|
||||
if (!link) {
|
||||
snprintf(xerrmsg, 256, "No link block named '%s'", servername);
|
||||
goto errlink;
|
||||
|
||||
Reference in New Issue
Block a user