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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user