From 4314d649e5faf4e0eb73ed7ad439f65e03b6e330 Mon Sep 17 00:00:00 2001 From: "certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Fri, 24 Mar 2006 12:42:54 +0000 Subject: [PATCH] # BUILD : 1.7.14 (1022) # BUGS : 483 # NOTES : important seg fix git-svn-id: svn://svn.anope.org/anope/trunk@1022 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@747 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + src/core/bs_bot.c | 14 ++++++++------ version.log | 6 +++++- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Changes b/Changes index 806afe167..726652ed8 100644 --- a/Changes +++ b/Changes @@ -54,6 +54,7 @@ Provided by Trystan - 2006 03/18 A New icon file for anope win32. [#472] 03/14 A Anope will now terminate on Win98. Added version check. [#473] 03/01 A Clarity on module loading status numbers. [#435] +03/24 F Fixed segfault on /bs change. [#483] 03/22 F Fixed distclean in all Makefiles. [#481] 03/19 F Fixed some gcc4 compiling issues. [#453] 03/18 F Fixed closing of file pointer in langtool.c. [#478] diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c index eaf66b9c8..7ada659c6 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -197,7 +197,7 @@ int do_bot(User * u) notice_lang(s_BotServ, u, BOT_DOES_NOT_EXIST, oldnick); else if (strlen(nick) > NickLen) notice_lang(s_BotServ, u, BOT_BAD_NICK); - else if (strlen(user) >= USERMAX) + else if (user && strlen(user) >= USERMAX) notice_lang(s_BotServ, u, BOT_BAD_IDENT); else { NickAlias *na; @@ -242,15 +242,17 @@ int do_bot(User * u) return MOD_CONT; } - if (!isValidHost(host, 3)) { + if (host && !isValidHost(host, 3)) { notice_lang(s_BotServ, u, BOT_BAD_HOST); return MOD_CONT; } - for (ch = user; *ch && (ch - user) < USERMAX; ch++) { - if (!isalnum(*ch)) { - notice_lang(s_BotServ, u, BOT_BAD_IDENT); - return MOD_CONT; + if (user) { + for (ch = user; *ch && (ch - user) < USERMAX; ch++) { + if (!isalnum(*ch)) { + notice_lang(s_BotServ, u, BOT_BAD_IDENT); + return MOD_CONT; + } } } diff --git a/version.log b/version.log index a0fe21d1e..e7f379e88 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="14" VERSION_EXTRA="-rc1" -VERSION_BUILD="1021" +VERSION_BUILD="1022" # $Log$ # +# BUILD : 1.7.14 (1022) +# BUGS : 483 +# NOTES : important seg fix +# # BUILD : 1.7.14 (1021) # BUGS : # NOTES : Anope 1.7.14 RC1