fall through to evidence measurements if no file measurements must be done
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 16 Aug 2012 07:15:36 +0000 (09:15 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 16 Aug 2012 07:15:36 +0000 (09:15 +0200)
src/libpts/plugins/imv_attestation/imv_attestation_build.c

index 1071fc9..23195d6 100644 (file)
@@ -197,7 +197,13 @@ bool imv_attestation_build(linked_list_t *attr_list,
                                attr_list->insert_last(attr_list, attr);
                        }
                        enumerator->destroy(enumerator);
-                       break;
+
+                       /* do we have any file metadata or measurement requests? */
+                       if (attr_list->get_count(attr_list))
+                       {
+                               break;
+                       }
+                       /* fall through to next state */
                }
                case IMV_ATTESTATION_STATE_COMP_EVID:
                {