summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ratox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratox.c b/ratox.c
index ee97466..bf2121e 100644
--- a/ratox.c
+++ b/ratox.c
@@ -612,7 +612,7 @@ dataload(void)
}
if (encryptsave == 1) {
- while (readpass() == -1 &&
+ while (readpass() == -1 ||
tox_encrypted_load(tox, data, sz, passphrase, pplen) < 0)
;
} else {