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

Catch errors in the deferred conn.Close() also #34

Merged
merged 1 commit into from
Mar 4, 2023
Merged

Conversation

rbarry82
Copy link
Contributor

@rbarry82 rbarry82 commented Mar 4, 2023

Issue

The spacemonkey OpenSSL wrapper may also return errors when trying to finalize by closing a connection with a nil pointer dereference. Check immediately after instantiating it and fail early, or we'll get a nilpointerexception on the defer

@rbarry82 rbarry82 merged commit ce7faed into main Mar 4, 2023
@rbarry82 rbarry82 deleted the ssl-segfault branch March 4, 2023 01:29
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.

1 participant