Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1355)

Unified Diff: src/tcs/tcs_evlog_biosem.c

Issue 3581012: Upgrade from trousers 0.3.3 to 0.3.6 and from testsuite 0.2 to 0.3. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/trousers.git
Patch Set: git cl push Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/tcs/tcs_auth_mgr.c ('k') | src/tcs/tcs_evlog_imaem.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/tcs/tcs_evlog_biosem.c
diff --git a/src/tcs/tcs_evlog_biosem.c b/src/tcs/tcs_evlog_biosem.c
index 4091c56861ce77bea4fe9632ff4bb241b7130ce5..7065e128318668dc21363696d4b2e144c67c23db 100644
--- a/src/tcs/tcs_evlog_biosem.c
+++ b/src/tcs/tcs_evlog_biosem.c
@@ -212,7 +212,7 @@ bios_get_entry(FILE *handle, UINT32 pcr_index, UINT32 *num, TSS_PCR_EVENT **ppEv
event = (TCG_PCClientPCREventStruc *)page;
if (pcr_index == event->pcrIndex) {
- if (!ppEvent && seen_indices == *num) {
+ if (ppEvent && !*ppEvent && seen_indices == *num) {
*ppEvent = calloc(1, sizeof(TSS_PCR_EVENT));
if (*ppEvent == NULL) {
LogError("malloc of %zd bytes failed.",
« no previous file with comments | « src/tcs/tcs_auth_mgr.c ('k') | src/tcs/tcs_evlog_imaem.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698