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

Fix races in sasl_{client,server}_init() #845

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mistotebe
Copy link
Contributor

Should address #584 (comment), @adamyi, can you confirm it works for you?

Admittedly a more complete overhaul of the _init()/_close() functions is warranted but I don't have a good approach for that yet.

@mistotebe
Copy link
Contributor Author

It still mutates global_callbacks, presumably in a memory-safe (even if non-deterministic) way, not sure if that's a problem. Otherwise might have to move that code around and abuse the fact that the content of global_callbacks is not touched in common_init.

@mistotebe mistotebe added this to the 2.2.0 milestone Jul 22, 2024
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