From b705f7eda60984c6af8b2ed2e2a15cf019d575f8 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sat, 17 Oct 2009 18:33:25 +0000 Subject: [PATCH] Fix crash when trying to parse a USERHOST reply for a nonexistant user on Unreal git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2569 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/unreal32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index 81404b909..34efa0f00 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -1022,7 +1022,7 @@ int anope_event_userhost(const char *source, int ac, const char **av) * This is the USERHOST reply, we only send a request if we do not know the users cloaked host * (they got introducted using a vhost) - Adam */ - if (ac < 2) + if (ac < 2 || !av[1] || !*av[1]) return MOD_CONT; std::string reply = av[1];