ソースを参照

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

Bryan Drewery 13 年 前
コミット
97d8a9db93
1 ファイル変更1 行追加1 行削除
  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);