mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
Changed length of password field to 64, giving us a maximum password length of 63 plus null terminator
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2960 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
89ae67a659
commit
1c50cc3371
@ -193,7 +193,7 @@ class userrec : public connection
|
||||
* This is stored even if the <connect> block doesnt need a password, so that
|
||||
* modules may check it.
|
||||
*/
|
||||
char password[MAXBUF];
|
||||
char password[64];
|
||||
|
||||
/** User's receive queue.
|
||||
* Lines from the IRCd awaiting processing are stored here.
|
||||
|
@ -71,7 +71,7 @@ void cmd_pass::Handle (char **parameters, int pcnt, userrec *user)
|
||||
return;
|
||||
}
|
||||
ConnectClass a = GetClass(user);
|
||||
strlcpy(user->password,parameters[0],MAXBUF);
|
||||
strlcpy(user->password,parameters[0],63);
|
||||
if (!strcmp(parameters[0],a.pass.c_str()))
|
||||
{
|
||||
user->haspassed = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user