Blame SOURCES/0001-tpm2_policyor-Silent-failure-bug-fix-for-invalid-uns.patch

d5d7cb
From 44d0d2d17dc693e029e0557ec985c9b68c3efeb5 Mon Sep 17 00:00:00 2001
d5d7cb
From: Imran Desai <imran.desai@intel.com>
d5d7cb
Date: Wed, 22 Jan 2020 14:15:48 -0700
d5d7cb
Subject: [PATCH] tpm2_policyor: Silent failure bug fix for invalid/unspecified
d5d7cb
 policy digest alg
d5d7cb
d5d7cb
Signed-off-by: Imran Desai <imran.desai@intel.com>
d5d7cb
---
d5d7cb
 lib/tpm2_policy.c | 1 +
d5d7cb
 1 file changed, 1 insertion(+)
d5d7cb
d5d7cb
diff --git a/lib/tpm2_policy.c b/lib/tpm2_policy.c
d5d7cb
index 3d9b5491f9ce..8460bd1d9ae9 100644
d5d7cb
--- a/lib/tpm2_policy.c
d5d7cb
+++ b/lib/tpm2_policy.c
d5d7cb
@@ -588,6 +588,7 @@ bool tpm2_policy_parse_policy_list(char *str, TPML_DIGEST *policy_list) {
d5d7cb
                 hash = tpm2_alg_util_from_optarg(subtoken,
d5d7cb
                         tpm2_alg_util_flags_hash);
d5d7cb
                 if (hash == TPM2_ALG_ERROR) {
d5d7cb
+                    LOG_ERR("Invalid/ Unspecified policy digest algorithm.");
d5d7cb
                     return false;
d5d7cb
                 }
d5d7cb
             }
d5d7cb
-- 
d5d7cb
2.27.0
d5d7cb