Procházet zdrojové kódy

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

Bryan Drewery před 13 roky
rodič
revize
97d8a9db93
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);