Skip to content

Conversation

@lxin
Copy link
Contributor

@lxin lxin commented May 20, 2025

The call to gnutls_global_deinit() in tlshd_quic_clienthello_handshake() and tlshd_quic_serverhello_handshake() is redundant, as it is already invoked by their common caller tlshd_service_socket(). Remove these unbalanced deinitialization calls to avoid potential misuse or double deinitialization.

Additionally, fix the error handling to assign -ret to session_status instead of ret for consistency with other error paths.

The call to gnutls_global_deinit() in tlshd_quic_clienthello_handshake()
and tlshd_quic_serverhello_handshake() is redundant, as it is already
invoked by their common caller tlshd_service_socket(). Remove these
unbalanced deinitialization calls to avoid potential misuse or double
deinitialization.

Additionally, fix the error handling to assign -ret to session_status
instead of ret for consistency with other error paths.

Signed-off-by: Xin Long <[email protected]>
@lxin
Copy link
Contributor Author

lxin commented May 20, 2025

close #97

@chucklever chucklever merged commit 75d5c74 into oracle:main May 24, 2025
4 of 5 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.

2 participants