diff options
author | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-03-18 11:06:29 +0000 |
---|---|---|
committer | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-03-18 11:06:29 +0000 |
commit | d500efe45d398a770bcf1c169b840f606ef475ae (patch) | |
tree | 17ed32e5d6b208f7bf5212d0261cc6feb2cd1534 | |
parent | f6531372757188ad4853eb7d355299317603216f (diff) |
# BUILD : 1.7.13 (1009) # BUGS : 460 # NOTES : fixed sstrdup(NULL) in cs_akick.c
git-svn-id: svn://svn.anope.org/anope/trunk@1009 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@734 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | src/core/cs_akick.c | 9 | ||||
-rw-r--r-- | version.log | 6 |
3 files changed, 13 insertions, 3 deletions
@@ -36,6 +36,7 @@ Provided by Anope Dev. <dev@anope.org> - 2006 03/02 F Fixed memleak in do_cmode(). [#430] 03/03 F Rage, Bahamut and Viagra will now use the correct server desc. [#467] 03/03 F Fixed botserv's mode behaviour with protect umode. [#333] +03/18 F Fixed sstrdup() with NULL argument in cs_akick.c. [#460] Provided by nenolod. <nenolod@nenolod.net> - 2006 02/03 A Support for Charybdis IRCd. [ #00] diff --git a/src/core/cs_akick.c b/src/core/cs_akick.c index dd729da98..89d171228 100644 --- a/src/core/cs_akick.c +++ b/src/core/cs_akick.c @@ -451,8 +451,13 @@ int do_akick(User * u) ci->akick[a].u.mask = sstrdup(ci->akick[b].u.mask); } - ci->akick[a].reason = - sstrdup(ci->akick[b].reason); + /* maybe we should first check whether there + is a reason before we sstdrup it -Certus */ + if (ci->akick[b].reason) + ci->akick[a].reason = + sstrdup(ci->akick[b].reason); + else + ci->akick[a].reason = NULL; ci->akick[a].creator = sstrdup(ci->akick[b].creator); ci->akick[a].addtime = ci->akick[b].addtime; diff --git a/version.log b/version.log index 866595387..b0fcb3a53 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="13" VERSION_EXTRA="-svn" -VERSION_BUILD="1008" +VERSION_BUILD="1009" # $Log$ # +# BUILD : 1.7.13 (1009) +# BUGS : 460 +# NOTES : fixed sstrdup(NULL) in cs_akick.c +# # BUILD : 1.7.13 (1008) # BUGS : 473 474 # NOTES : gcc switches and win98 stop, thx 2 trystan |