Skip to content

Commit 438b8f0

Browse files
committed
Fix some typos
Signed-off-by: zhaochan <42883733@qq.com>
1 parent aa16fc2 commit 438b8f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tss-esapi/src/abstraction/ak.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub fn load_ak(
129129
session_attributes_mask,
130130
)
131131
.or_else(|e| {
132-
ctx.flush_context(SessionHandle::from(policy_auth_session).into())?;
132+
context.flush_context(SessionHandle::from(policy_auth_session).into())?;
133133
Err(e)
134134
})?;
135135

@@ -194,7 +194,7 @@ pub fn create_ak<IKC: IntoKeyCustomization>(
194194
session_attributes_mask,
195195
)
196196
.or_else(|e| {
197-
ctx.flush_context(SessionHandle::from(policy_auth_session).into())?;
197+
context.flush_context(SessionHandle::from(policy_auth_session).into())?;
198198
Err(e)
199199
})?;
200200

tss-esapi/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ impl Context {
307307
.build();
308308
self.tr_sess_set_attributes(auth_session, session_attributes, session_attributes_mask)
309309
.or_else(|e| {
310-
ctx.flush_context(SessionHandle::from(auth_session).into())?;
310+
self.flush_context(SessionHandle::from(auth_session).into())?;
311311
Err(e)
312312
})?;
313313

0 commit comments

Comments
 (0)