Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tcti-msim: Fix call of socket_xmit_buf in send_sim_session_end. #2916

Conversation

JuergenReppSIT
Copy link
Member

  • socket_xmit_buf was not called after successful marshalling.
  • The result of the write function was not set in the wrapper function for write in the teardown function.

Fixes: #2915

cplappert
cplappert previously approved these changes Dec 3, 2024
Copy link
Member

@cplappert cplappert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one minor change, otherwise lgtm.

@@ -358,6 +361,7 @@ tcti_mssim_get_poll_handles_test (void **state)
assert_int_equal (rc, TSS2_RC_SUCCESS);
assert_int_equal (num_handles, 1);
assert_int_equal (handles[0].fd, mssim_ctx->tpm_sock);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete introduced empty line.

* socket_xmit_buf was not called after successful marshalling.
* The result of the write function was not set in the wrapper function for
  write in the teardown function.

Fixes: tpm2-software#2915

Signed-off-by: Juergen Repp <[email protected]>
@JuergenReppSIT JuergenReppSIT merged commit dcbe69c into tpm2-software:master Dec 3, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSSIM TCTI: Wrong condition in send_sim_session_end()?
2 participants