summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-05-28 03:12:03 +0800
committerKeuin <[email protected]>2022-05-28 03:12:34 +0800
commit2718019bef355092a2f5e10f33c6002a1c261c2b (patch)
tree2b152ce585a6f81b7931be9563c4baec499a3c93 /main.c
parent382a32ae03eac509149c225e66ed745d1d132b22 (diff)
Bugfix: if program is not configured to save the decrypted photo, it will say 'KEY WAS NOT FOUND'.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 05eda03..1589c6a 100644
--- a/main.c
+++ b/main.c
@@ -393,7 +393,9 @@ int main(int argc, char *argv[]) {
fclose(fout);
printf("Flash photo has been saved in: %s\n",
plaintext_save_path);
- } else {
+ }
+
+ if (crack_result.plaintext == NULL) {
printf("[-] KEY WAS NOT FOUND.\n");
}