Skip to content

Fix string use after destruct introduced in merge commit b7fa0b1 #636

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

Merged

Conversation

JonathanGawrych
Copy link
Contributor

See the comment on L480. If the uri port is not default, and is greater than 0, then a LPCWSTR (proxy_name) is pointed to a string that is then destructed before it is used. Reverted the string declaration move, so that it's lifetime is preserved after proxy_name is used.

@ras0219-msft ras0219-msft merged commit 2f907ba into microsoft:master Dec 23, 2017
@ras0219-msft
Copy link
Contributor

Yep, this is the right fix. Thanks!

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.

2 participants