summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-01-24 14:35:43 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-01-24 14:35:43 +0000
commit422197c87ba8cd9de5c75b442c116f0790dc9070 (patch)
treeea0b81f7f7f1b59011fd88aefa71db5ed4fa6ce3 /src
parent7379abc04a5b8aa157db7416be0d5f2657d1b6da (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/hostserv.c2
1 files changed, 1 insertions, 1 deletions
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;