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

Avoid using GetAddrInfoExW when impersonation is used #13738

Closed
wants to merge 1 commit into from

Conversation

pps83
Copy link
Contributor

@pps83 pps83 commented May 21, 2024

Multiple reports suggest that GetAddrInfoExW fails when impersonation is used. This PR checks if thread is impersonating and avoids using GetAddrInfoExW api.

fixes #13612

@jay
Copy link
Member

jay commented May 22, 2024

This is almost the same as what @edmcln suggested so I will credit him as a co author unless you have any objection. Also he says he's still looking into it so I'd like to wait and see if he finds anything else before we go with this.

@jay jay added Windows Windows-specific name lookup DNS and related tech labels May 22, 2024
lib/system_win32.c Outdated Show resolved Hide resolved
Multiple reports suggest that GetAddrInfoExW fails when impersonation is used. This PR checks if thread is impersonating and avoids using GetAddrInfoExW api.

fixes curl#13612
@pps83
Copy link
Contributor Author

pps83 commented May 23, 2024

@jay @bagder looks like the fix is good. Should be ok to merge

@bagder bagder closed this in 0caadc1 May 23, 2024
@bagder
Copy link
Member

bagder commented May 23, 2024

Thanks!

@pps83 pps83 deleted the master-fix13612 branch May 26, 2024 09:30
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 Windows Windows-specific
Development

Successfully merging this pull request may close these issues.

Windows DNS resolution fails when impersonation is used
3 participants