fix for setpass issue

This commit is contained in:
joonicks 2025-09-23 21:23:47 +02:00
parent bbc410ede8
commit 74a3b0b739

View File

@ -1581,7 +1581,7 @@ void change_pass(User *user, char *pass)
char *enc;
enc = makepass(pass);
if (strlen(user->pass) <= strlen(enc))
if (user->pass && strlen(user->pass) <= strlen(enc))
{
stringcpy(user->pass,enc);
#ifdef BOTNET