diff options
author | geniusdex 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 |
---|---|---|
committer | geniusdex 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 |
commit | 00bf5bcacef030b6194f2754aff0d25d09f8076e (patch) | |
tree | 619e1bffc1694d45952b6b2fe10e5f6ec9ba4481 /src | |
parent | f13848d99e2b5545fdee5734c0b6424b82ab8b5f (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
Diffstat (limited to 'src')
-rw-r--r-- | src/users.c | 6 |
1 files changed, 6 insertions, 0 deletions
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(); |