From 45ae3f1a55b3ca12515e5f25673051a31ecdd0f6 Mon Sep 17 00:00:00 2001 From: "certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 11 Dec 2004 13:03:09 +0000 Subject: BUILD : 1.7.6 (487) BUGS : NOTES : Fixed possible NULL-free() in delcore() git-svn-id: svn://svn.anope.org/anope/trunk@487 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@341 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + src/nickserv.c | 4 ++-- version.log | 6 +++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index 5c42c8642..31c58efc3 100644 --- a/Changes +++ b/Changes @@ -13,6 +13,7 @@ Provided by Anope Dev. - 2004 11/19 A Added anope_cmd_ctcp() to code API, for sending CTCP messages. [ #00] 11/18 A Unable to use registered nicknames as bot nicks from now on. [ #00] 11/18 A NSAddAccessOnReg to control access list on registration. [ #00] +12/11 F Fixed possible crashbug (NULL-free) in nickserv's delcore(). [ #00] 12/09 F Hybrid crash on unsetting registration mode. [ #00] 12/09 F BotServ !seen not recognizing founder. [#167] 12/08 F ChanServ ACCESS wrong when dealing negative numbers. [#240] diff --git a/src/nickserv.c b/src/nickserv.c index a1a6fcd9b..89c1b8a77 100644 --- a/src/nickserv.c +++ b/src/nickserv.c @@ -1602,8 +1602,8 @@ static int delcore(NickCore * nc) if (nc->memos.memos) { for (i = 0; i < nc->memos.memocount; i++) { if (nc->memos.memos[i].text) - moduleCleanStruct(&nc->memos.memos[i].moduleData); - free(nc->memos.memos[i].text); + free(nc->memos.memos[i].text); + moduleCleanStruct(&nc->memos.memos[i].moduleData); } free(nc->memos.memos); } diff --git a/version.log b/version.log index 03d9a0a9b..d798b3d17 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="6" -VERSION_BUILD="486" +VERSION_BUILD="487" # $Log$ # +# BUILD : 1.7.6 (487) +# BUGS : +# NOTES : Fixed possible NULL-free() in delcore() +# # BUILD : 1.7.6 (486) # BUGS : 243 # NOTES : docs patch to bug 243, and removed shut_clean_user() it started to do more harm then good -- cgit