Pārlūkot izejas kodu

Fix crash when sending 'auth' after initiating auth, and no longer a valid user

Bryan Drewery 13 gadi atpakaļ
vecāks
revīzija
97d8a9db93
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/mod/irc.mod/msgcmds.c

+ 1 - 1
src/mod/irc.mod/msgcmds.c

@@ -345,7 +345,7 @@ static int msg_auth(char *nick, char *host, struct userrec *u, char *par)
 
   Auth *auth = Auth::Find(host);
 
-  if (!auth || auth->Status() != AUTH_PASS)
+  if (!auth || auth->Status() != AUTH_PASS || !u)
     return BIND_RET_BREAK;
 
   pass = newsplit(&par);