summaryrefslogtreecommitdiffstats
path: root/twrpDigest.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2017-02-23 23:05:59 +0100
committerthat <github@that.at>2017-02-23 23:05:59 +0100
commitd1afb52fea006771c968c3f27b1598811fdf8824 (patch)
treed9e50c571a9ccdfe610c92b87fadaa1cfc7ecc17 /twrpDigest.cpp
parentlogd: add seclabel so that service runs in 7.1 tree builds (diff)
downloadandroid_bootable_recovery-d1afb52fea006771c968c3f27b1598811fdf8824.tar
android_bootable_recovery-d1afb52fea006771c968c3f27b1598811fdf8824.tar.gz
android_bootable_recovery-d1afb52fea006771c968c3f27b1598811fdf8824.tar.bz2
android_bootable_recovery-d1afb52fea006771c968c3f27b1598811fdf8824.tar.lz
android_bootable_recovery-d1afb52fea006771c968c3f27b1598811fdf8824.tar.xz
android_bootable_recovery-d1afb52fea006771c968c3f27b1598811fdf8824.tar.zst
android_bootable_recovery-d1afb52fea006771c968c3f27b1598811fdf8824.zip
Diffstat (limited to 'twrpDigest.cpp')
-rw-r--r--twrpDigest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/twrpDigest.cpp b/twrpDigest.cpp
index d1217cb6a..a9ba20a38 100644
--- a/twrpDigest.cpp
+++ b/twrpDigest.cpp
@@ -154,7 +154,7 @@ int twrpDigest::verify_md5digest(void) {
snprintf(hex, 3, "%02x", md5sum[i]);
md5str += hex;
}
- if (tokens.at(0) != md5str)
+ if (tokens.empty() || tokens.at(0) != md5str)
return MD5_MATCH_FAIL;
return MD5_OK;