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

Unified Diff: src/tspi/tsp_auth.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/tspi/rpc/hosttable.c ('k') | src/tspi/tsp_context_mem.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/tspi/tsp_auth.c
diff --git a/src/tspi/tsp_auth.c b/src/tspi/tsp_auth.c
index b2b505234f2db13787a9beafa96a7af8af23f494..55b9ccf2fb5eca4bcd8596b3f3e7cbab88275c9a 100755
--- a/src/tspi/tsp_auth.c
+++ b/src/tspi/tsp_auth.c
@@ -856,7 +856,7 @@ authsess_xsap_init(TSS_HCONTEXT tspContext,
case TPM_ORD_CMK_CreateKey:
if ((result = obj_rsakey_get_policies(obj_child, &sess->hUsageChild,
&sess->hMigChild, &authdatausage)))
- return result;
+ goto error;
if (authdatausage && !sess->hUsageChild) {
result = TSPERR(TSS_E_TSP_AUTHREQUIRED);
@@ -965,7 +965,7 @@ authsess_xsap_init(TSS_HCONTEXT tspContext,
sess->encAuthUse.authdata, NULL, NULL,
&sess->cb_sealx, &sess->uMode,
new_secret)))
- return result;
+ goto error;
}
if ((result = get_local_random(tspContext, FALSE, sizeof(TPM_NONCE),
@@ -1129,6 +1129,7 @@ authsess_free(struct authsess *xsap)
free(xsap->entityValue);
free(xsap);
+ xsap = NULL;
}
}
« no previous file with comments | « src/tspi/rpc/hosttable.c ('k') | src/tspi/tsp_context_mem.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698