Blame SOURCES/0005-ResourceManager-Avoid-double-free-in-resource-manage.patch

1a1093
From a97e07d5a5947f5749e4ea25d0f538eeee8997bb Mon Sep 17 00:00:00 2001
1a1093
From: Jerry Snitselaar <jsnitsel@redhat.com>
1a1093
Date: Mon, 23 Nov 2020 11:45:31 -0700
1a1093
Subject: [PATCH 5/6] ResourceManager: Avoid double free in resource-manager.c
1a1093
1a1093
Clean up potential double free found by coverity in
1a1093
resource_manager_load_session_from_handle. If flush_session has been
1a1093
called, don't call session_list_remove which is already called in
1a1093
flush_session.
1a1093
1a1093
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
1a1093
---
1a1093
 src/resource-manager.c | 1 +
1a1093
 1 file changed, 1 insertion(+)
1a1093
1a1093
diff --git a/src/resource-manager.c b/src/resource-manager.c
1a1093
index 050436f..556184b 100644
1a1093
--- a/src/resource-manager.c
1a1093
+++ b/src/resource-manager.c
1a1093
@@ -239,6 +239,7 @@ resource_manager_load_session_from_handle (ResourceManager *resmgr,
1a1093
         rc = tpm2_response_get_code (response);
1a1093
         if (rc != TSS2_RC_SUCCESS) {
1a1093
             flush_session (resmgr, session_entry);
1a1093
+            goto out;
1a1093
         }
1a1093
     }
1a1093
     if (will_flush) {
1a1093
-- 
1a1093
2.34.3
1a1093