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

Make sure pj_dns_resolver_start_query() returns NULL for query object when returning from cache #3996

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

andreas-wehrmann
Copy link
Contributor

In #3990 I updated the description of pj_dns_resolver_start_query() saying that if a pointer for a query object is specified then NULL will be returned if the answer is available from cache.

However, this is not happening because I didn't notice the function returns early when a cached response is available.
This PR corrects this behaviour and sets the pointer to NULL before calling the user callback and then returning from the function.

@sauwming sauwming merged commit 3249dfb into pjsip:master Jun 20, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants