зеркало из https://github.com/mozilla/pjs.git
fixed faulty logic re: pressing cancel in order not to use database passwords
This commit is contained in:
Родитель
79959de7c7
Коммит
1213e0e744
|
@ -750,7 +750,7 @@ Wallet_SetKey(PRBool isNewkey) {
|
|||
newkey = wallet_GetString(password);
|
||||
}
|
||||
if (newkey == NULL) { /* user hit cancel button */
|
||||
if (wallet_KeySize() == 0) { /* no password file existed before */
|
||||
if (wallet_KeySize() < 0) { /* no password file existed before */
|
||||
newkey = PL_strdup(""); /* use zero-length password */
|
||||
} else {
|
||||
return PR_FALSE; /* user could not supply the correct password */
|
||||
|
|
Загрузка…
Ссылка в новой задаче