Commit 75d5c74
tlshd: remove redundant gnutls_global_deinit()
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]>1 parent 2f609c5 commit 75d5c74
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
| 614 | + | |
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
581 | | - | |
| 580 | + | |
| 581 | + | |
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| |||
0 commit comments