summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-09-21 16:43:45 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-09-21 16:43:45 +0000
commit00bf5bcacef030b6194f2754aff0d25d09f8076e (patch)
tree619e1bffc1694d45952b6b2fe10e5f6ec9ba4481
parentf13848d99e2b5545fdee5734c0b6424b82ab8b5f (diff)
BUILD : 1.7.11 (893) BUGS : NOTES : Fixed a segfault in find_byuid() if it was passed with a NULL-argument
git-svn-id: svn://svn.anope.org/anope/trunk@893 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@640 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes1
-rw-r--r--src/users.c6
-rw-r--r--version.log6
3 files changed, 12 insertions, 1 deletions
diff --git a/Changes b/Changes
index ff1ddf073..d56f346c7 100644
--- a/Changes
+++ b/Changes
@@ -8,6 +8,7 @@ Provided by Anope Dev. <dev@anope.org> - 2005
07/01 A Events for channel access/xop updates. [ #00]
06/26 A New module pack module: hs_request. [ #00]
06/03 A Protocol files can now fill mod_current_buffer with custom code. [#389]
+09/21 F Segfault when find_byuid() was called with a NULL argument. [ #00]
09/20 F Ident length checking when adding a bot was broken. [ #00]
09/20 F No response was giving when trying to load a non-existing module. [ #00]
09/18 F Last host was not always correctly set to a vHost if applied. [ #00]
diff --git a/src/users.c b/src/users.c
index 725d24a50..e3684a6b6 100644
--- a/src/users.c
+++ b/src/users.c
@@ -376,6 +376,12 @@ User *find_byuid(const char *uid)
{
User *u, *next;
+ if (!uid) {
+ if (debug)
+ alog("debug: find_byuid() called with NULL-value");
+ return NULL;
+ }
+
u = first_uid();
while (u) {
next = next_uid();
diff --git a/version.log b/version.log
index 9b504f3f2..ad020ad36 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="11"
VERSION_EXTRA="-rc2"
-VERSION_BUILD="892"
+VERSION_BUILD="893"
# $Log$
#
+# BUILD : 1.7.11 (893)
+# BUGS :
+# NOTES : Fixed a segfault in find_byuid() if it was passed with a NULL-argument
+#
# BUILD : 1.7.11 (892)
# BUGS :
# NOTES : Applied patch by Trystan to [1] strip CR/LF as well with normalizeBuffer() [2] fix various issues with hs_request (makes use of #1 in hs_request so that lines that are \n only are not processed; Adds check of tmp before allowing strtol() to get its hands on it; HSRequestDBName is set during the config load, if not by the config its sstrdup() with the default value.. so that the message at the end of the load does not read (NULL); frees the HSRequestDBName on unload; ran indent again it)