1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-29 11:56:37 +02:00

- Fixed (important?) reference count bug regarding sptr->serv->conf. I don't know what

effects this caused (memory corruption?), but it didn't look good ;).
This commit is contained in:
Bram Matthys
2005-09-12 16:33:46 +00:00
parent 3cb4be0ad6
commit 7ebd0debd7
2 changed files with 12 additions and 3 deletions
+2
View File
@@ -859,3 +859,5 @@
This feature has been suggested for several years (and refused), but the final
suggestion (with implementation specific hints) came from Gilou in bug #0002207.
- Fixed win32 makefile, now compiles fine.
- Fixed (important?) reference count bug regarding sptr->serv->conf. I don't know what
effects this caused (memory corruption?), but it didn't look good ;).
+10 -3
View File
@@ -179,9 +179,16 @@ 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 {
/* Hunt the linkblock down ;) */
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;