1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 17:13:14 +02:00

BUILD : 1.7.8 (764) BUGS : 363 NOTES : Missing (c->)ci check in do_topic(), causing segfaults...

git-svn-id: svn://svn.anope.org/anope/trunk@764 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@525 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2005-05-04 10:12:32 +00:00
parent 21ef2c095f
commit a075334df1
3 changed files with 8 additions and 3 deletions
+1
View File
@@ -25,6 +25,7 @@ Provided by Anope Dev. <dev@anope.org> - 2005
02/13 A Internal Event support, see EVENTS in the doc folder for help [ #00]
02/05 A Support for Unreal 3.2 +I channel mode. [ #00]
02/03 A Merged anope-win32 branch into the main, now Win32 ready. [ #00]
05/04 F Missing check for valid ChannelInfo in topic handling. [#363]
05/04 F Module language texts sometimes being mixed. [ #00]
05/04 F Wrong datatype in the config parser for OSInfoDBName. [ #00]
05/03 F Wrong variable checking in anope_event_away(). [ #00]
+2 -2
View File
@@ -1169,7 +1169,7 @@ void do_topic(const char *source, int ac, char **av)
* channel exactly, there's no need to update anything and we can as
* well just return silently without updating anything. -GD
*/
if ((ac > 3) && *av[3] && (ci = c->ci) && ci->last_topic
if ((ac > 3) && *av[3] && ci && ci->last_topic
&& (strcmp(av[3], ci->last_topic) == 0)
&& (strcmp(av[1], ci->last_topic_setter) == 0))
return;
@@ -1190,7 +1190,7 @@ void do_topic(const char *source, int ac, char **av)
record_topic(av[0]);
if (ci->last_topic) {
if (ci && ci->last_topic) {
send_event(EVENT_TOPIC_UPDATED, 2, av[0], ci->last_topic);
} else {
send_event(EVENT_TOPIC_UPDATED, 2, av[0], "");
+5 -1
View File
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="8"
VERSION_BUILD="763"
VERSION_BUILD="764"
# $Log$
#
# BUILD : 1.7.8 (764)
# BUGS : 363
# NOTES : Missing (c->)ci check in do_topic(), causing segfaults...
#
# BUILD : 1.7.8 (763)
# BUGS : none
# NOTES : Final file normalization, Languages ready for dev release.