Fix crypt passwords

This commit is contained in:
Vladimir Dubrovin committed 2026-05-08 19:00:14 +03:00
1 parent b1d21cbdca
commit 6286bfcd6e
3 files changed
+6 -10

No files matched your search

+2 -2
View File
@@ -244,9 +244,9 @@ int strongauth(struct clientparam * param){
return 6;
}
case CR:
if (mycrypt(param->password, (unsigned char *)pass, buf) &&
if (mycrypt(param->password, (unsigned char *)pass + 1, buf) &&
!strcmp(pass + 1, (char *)buf))
return 0;
return 0;
else return 7;
#ifdef WITH_SSL
case NT: