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

Add more checks on validity of NUA before using it in SIP plugin #2247

Merged
merged 1 commit into from
Jun 25, 2020

Conversation

lminiero
Copy link
Member

Apparently, there are some race conditions that can happen if the s_nua NUA object is destroyed after the stack loop ends, and requests to use it arrive after that. This is a first attempt to fix that, by adding more checks on the validity of the object before using it, taking advantage of the stack mutex for the purpose. I'm not able to replicate the issue myself (master works fine for me even when stress testing) so I can't check if this works: I'll wait for feedback before deciding whether this fix is enough, or if more needs to be done.

@lminiero
Copy link
Member Author

Looks like this patch fixed the issue, so I'll merge.

@lminiero lminiero merged commit 922b392 into master Jun 25, 2020
@lminiero lminiero deleted the sofiasip-fixes branch June 25, 2020 15:24
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