From ea4ae84f855473023428ba091c6120b896f2a3d3 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Wed, 25 May 2005 16:33:45 +0000 Subject: BUILD : 1.7.10 (815) BUGS : 383 NOTES : Added value checking for deleting ignores, which fixes a (very rare) segfault git-svn-id: svn://svn.anope.org/anope/trunk@815 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@568 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/os_ignore.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core') diff --git a/src/core/os_ignore.c b/src/core/os_ignore.c index a4d73d649..7b1ee8ff5 100644 --- a/src/core/os_ignore.c +++ b/src/core/os_ignore.c @@ -171,6 +171,9 @@ void delete_ignore(const char *nick) if (stricmp(ign->who, nick) == 0) break; } + /* If the ignore was not found, bail out -GD */ + if (!ign) + return; if (prev) prev->next = ign->next; else -- cgit