summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-17 18:33:25 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-17 18:33:25 +0000
commitb705f7eda60984c6af8b2ed2e2a15cf019d575f8 (patch)
tree69d14c084100a70daa5ffcffe4d80d42a809a85f
parent00494c9020bfddcfde6707eab03803570c9f7dbd (diff)
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
-rw-r--r--src/protocol/unreal32.c2
1 files changed, 1 insertions, 1 deletions
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];