ソースを参照

* Don't truncate passwords at MAXPASSLEN when converting to new format

Bryan Drewery 14 年 前
コミット
0bd28912b5
1 ファイル変更0 行追加3 行削除
  1. 0 3
      src/userrec.c

+ 0 - 3
src/userrec.c

@@ -308,9 +308,6 @@ void convert_password(struct userrec *u)
     pass += 17;
     pass += 17;
     /* ----------------------------------------------------------------------- */
     /* ----------------------------------------------------------------------- */
 
 
-    if (strlen(pass) > MAXPASSLEN)
-      pass[MAXPASSLEN] = 0;
-
     set_user(&USERENTRY_PASS, u, pass);
     set_user(&USERENTRY_PASS, u, pass);
     OPENSSL_cleanse(passp, strlen(passp));
     OPENSSL_cleanse(passp, strlen(passp));
     free(passp);
     free(passp);