1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 02:16:37 +02:00

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
This commit is contained in:
Adam-
2009-10-17 18:33:25 +00:00
parent 00494c9020
commit b705f7eda6
+1 -1
View File
@@ -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];