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

doh: Optimization for disabled ENABLE_IPV6 #10397

Closed
wants to merge 1 commit into from
Closed

doh: Optimization for disabled ENABLE_IPV6 #10397

wants to merge 1 commit into from

Conversation

kvarec
Copy link
Contributor

@kvarec kvarec commented Feb 2, 2023

For disabled IPv6 a condition (conn->ip_version != CURL_IPRESOLVE_V4) is always false.
https://pvs-studio.com/en/docs/warnings/v560/

For disabled IPv6 a condition (conn->ip_version != CURL_IPRESOLVE_V4) is always false.
https://pvs-studio.com/en/docs/warnings/v560/
@github-actions github-actions bot added the name lookup DNS and related tech label Feb 2, 2023
@bagder
Copy link
Member

bagder commented Feb 2, 2023

The title says "Code is unusable without ENABLE_IPV6" but it seems this is just an optimization?

@kvarec kvarec closed this Feb 2, 2023
@kvarec kvarec reopened this Feb 2, 2023
@kvarec kvarec changed the title doh: Code is unusable without ENABLE_IPV6 doh: Optimization for disabled ENABLE_IPV6 Feb 2, 2023
@kvarec
Copy link
Contributor Author

kvarec commented Feb 2, 2023

The title says "Code is unusable without ENABLE_IPV6" but it seems this is just an optimization?

fixed

@bagder bagder closed this in 80c98ef Feb 3, 2023
@bagder
Copy link
Member

bagder commented Feb 3, 2023

Thanks!

@kvarec kvarec deleted the fix_doh_c branch February 3, 2023 11:23
bch pushed a commit to bch/curl that referenced this pull request Jul 19, 2023
For disabled IPv6 a condition (conn->ip_version != CURL_IPRESOLVE_V4) is
always false. https://pvs-studio.com/en/docs/warnings/v560/

Closes curl#10397
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
name lookup DNS and related tech
Development

Successfully merging this pull request may close these issues.

None yet

2 participants