Skip to content
Snippets Groups Projects
Commit 14f787a9 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't pass a TLS session ID of 0 js_CreateCommonObjects() for non-TLS sessions

The proper sentinel value here for "no TLS session" is -1, not 0.

This, at minimum, was causing a lot of extraneous calls to destroy_session()
(from js_socket.c's do_js_close()) with an invalid (hopefully, not
otherwise used) cryptlib session ID of 0.

Nothing checks or logs the return value of destroy_session(), but I'd expect
it to be failing ... a lot.
parent 65cc409d
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment