From 00bf5bcacef030b6194f2754aff0d25d09f8076e Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Wed, 21 Sep 2005 16:43:45 +0000 Subject: 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 --- src/users.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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(); -- cgit