Explorar o código

* Don't truncate password at MAXPASSLEN in msg_pass

Bryan Drewery %!s(int64=14) %!d(string=hai) anos
pai
achega
c5487bac45
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      src/mod/irc.mod/msgcmds.c

+ 0 - 2
src/mod/irc.mod/msgcmds.c

@@ -105,8 +105,6 @@ static int msg_pass(char *nick, char *host, struct userrec *u, char *par)
   } else {
     mynew = old;
   }
-  if (strlen(mynew) > MAXPASSLEN)
-    mynew[MAXPASSLEN] = 0;
 
   if (!goodpass(mynew, 0, nick)) {
     putlog(LOG_CMDS, "*", "(%s!%s) !%s! $b!$bPASS...", nick, host, u->handle);