From 422197c87ba8cd9de5c75b442c116f0790dc9070 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Sat, 24 Jan 2009 14:35:43 +0000 Subject: Fix crash when loading HostServ database with a null vIdent, found by Ankit. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1934 5417fbe8-f217-4b02-8779-1006273d7864 --- src/hostserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/hostserv.c b/src/hostserv.c index 60cbec841..314e8f4e2 100644 --- a/src/hostserv.c +++ b/src/hostserv.c @@ -405,7 +405,7 @@ void load_hs_dbase(dbFILE * f) SAFE(read_int32(&time, f)); // Older Anope could save an empty vident when importing from MySQL, so trap that here. - if (!strcmp(vIdent, "")) + if (vIdent && !strcmp(vIdent, "")) { delete [] vIdent; vIdent = NULL; -- cgit