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(mdns): add lock for some common apis (IDFGH-12338) #529

Merged

Conversation

zwx1995esp
Copy link
Contributor

This PR fixes a thread-safe risk, some common apis do not take a look when operate the static global variable _mdns_server of mdns.

@zwx1995esp zwx1995esp force-pushed the fix/add_lock_for_mdns_common_api branch from a0d11ad to 7a078e0 Compare March 13, 2024 04:17
@zwx1995esp zwx1995esp force-pushed the fix/add_lock_for_mdns_common_api branch from 7a078e0 to 62823ef Compare March 13, 2024 04:30
@gabsuren gabsuren added the mdns label Mar 13, 2024
@zwx1995esp
Copy link
Contributor Author

Hi @david-cermak I wrapped the API mdns_query_results_free with taking and giving the mdns service lock. PTAL.

@github-actions github-actions bot changed the title fix(mdns): add lock for some common apis fix(mdns): add lock for some common apis (IDFGH-12338) Mar 13, 2024
@zwx1995esp zwx1995esp force-pushed the fix/add_lock_for_mdns_common_api branch 5 times, most recently from 33d9857 to 50a20dd Compare March 14, 2024 07:10
@zwx1995esp zwx1995esp force-pushed the fix/add_lock_for_mdns_common_api branch from 50a20dd to 21c84bf Compare March 14, 2024 09:53
Copy link
Collaborator

@david-cermak david-cermak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the fixes!

@gabsuren gabsuren merged commit 4e84493 into espressif:master Mar 15, 2024
32 checks passed
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.

5 participants