From c53d520d2b6e04db0c735f1b4c43e4ea27efa309 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Tue, 2 Apr 2019 15:56:25 -0500 Subject: Fix zip digest check Change-Id: I5c05c485574131d3fbc8cb5af5b1281d12b822ce --- twrpDigestDriver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'twrpDigestDriver.cpp') diff --git a/twrpDigestDriver.cpp b/twrpDigestDriver.cpp index 079d0b8f5..4023c813d 100755 --- a/twrpDigestDriver.cpp +++ b/twrpDigestDriver.cpp @@ -69,10 +69,12 @@ bool twrpDigestDriver::Check_File_Digest(const string& Filename) { #endif if (!TWFunc::Path_Exists(digestfile)) { + delete digest; if (Filename.find(".zip") == std::string::npos) { gui_msg(Msg(msg::kError, "no_digest_found=No digest file found for '{1}'. Please unselect Enable Digest verification to restore.")(Filename)); + } else { + return true; } - delete digest; return false; } -- cgit v1.2.3