Преглед изворни кода

Merge branch 'master' into next

* master:
  Fix crash when sending 'auth' after initiating auth, and no longer a valid user
Bryan Drewery пре 13 година
родитељ
комит
4fb141336f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/mod/irc.mod/msgcmds.c

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

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