From 6fc638ed61aad91989c9fa4fa1b15a86708aeb9f Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 4 Jun 2013 13:31:17 +0000 Subject: - motd.c:motd_destroy() don't attempt to unlink a local/remote motd from MotdList.other git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2192 82007160-df01-0410-b94d-b575c5fd34c7 --- src/motd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/motd.c b/src/motd.c index 21218e3..138b9b3 100644 --- a/src/motd.c +++ b/src/motd.c @@ -210,7 +210,6 @@ motd_destroy(struct Motd *motd) if (motd->cache) /* drop the cache */ motd_decache(motd); - dlinkDelete(&motd->node, &MotdList.other); MyFree(motd->path); /* we always must have a path */ MyFree(motd->hostmask); MyFree(motd); @@ -411,7 +410,10 @@ motd_clear(void) motd_decache(MotdList.remote); DLINK_FOREACH_SAFE(ptr, ptr_next, MotdList.other.head) /* destroy other MOTDs */ + { + dlinkDelete(ptr, &MotdList.other); motd_destroy(ptr->data); + } /* now recache local and remote MOTDs */ motd_cache(MotdList.local); -- cgit