Blame SOURCES/0022-fapi-use-correct-userdata-for-cbauthnv.patch

6a14f3
From b289b38764e9f6c4fbe50008fede7baa47098a58 Mon Sep 17 00:00:00 2001
6a14f3
From: Erik Larsson <who+github@cnackers.org>
6a14f3
Date: Mon, 4 Jul 2022 19:14:30 +0200
6a14f3
Subject: [PATCH 22/23] fapi: use correct userdata for cbauthnv
6a14f3
6a14f3
Signed-off-by: Erik Larsson <who+github@cnackers.org>
6a14f3
---
6a14f3
 src/tss2-fapi/ifapi_policy_execute.c | 2 +-
6a14f3
 1 file changed, 1 insertion(+), 1 deletion(-)
6a14f3
6a14f3
diff --git a/src/tss2-fapi/ifapi_policy_execute.c b/src/tss2-fapi/ifapi_policy_execute.c
6a14f3
index caae103e..ddaf255c 100644
6a14f3
--- a/src/tss2-fapi/ifapi_policy_execute.c
6a14f3
+++ b/src/tss2-fapi/ifapi_policy_execute.c
6a14f3
@@ -760,7 +760,7 @@ execute_policy_authorize_nv(
6a14f3
     switch (current_policy->state) {
6a14f3
     statecase(current_policy->state, POLICY_EXECUTE_INIT)
6a14f3
         /* Execute the policy stored in the NV object. */
6a14f3
-        r = cb->cbauthnv(&policy->nvPublic, hash_alg, cb->cbauthpol_userdata);
6a14f3
+        r = cb->cbauthnv(&policy->nvPublic, hash_alg, cb->cbauthnv_userdata);
6a14f3
         try_again_or_error(r, "Execute policy authorize nv callback.");
6a14f3
 
6a14f3
         r = ifapi_nv_get_name(&policy->nvPublic, &current_policy->name);
6a14f3
-- 
6a14f3
2.34.3
6a14f3