Skip to content

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

Merged
ras0219-msft merged 1 commit intomicrosoft:masterfrom
JonathanGawrych:jag/UseProxyAfterDestruct
Dec 23, 2017
Merged

Fix string use after destruct introduced in merge commit b7fa0b1#636
ras0219-msft merged 1 commit intomicrosoft:masterfrom
JonathanGawrych:jag/UseProxyAfterDestruct

Conversation

@JonathanGawrych
Copy link
Copy Markdown
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
Copy Markdown
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