1
0
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:
Bram Matthys
2005-09-12 18:22:42 +00:00
parent 0f4443efd0
commit ec1fa23dad
+9 -3
View File
@@ -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;