diff options
author | David Benjamin <davidben@google.com> | 2018-05-20 17:24:30 -0400 |
---|---|---|
committer | David Benjamin <davidben@google.com> | 2018-05-24 15:49:33 -0400 |
commit | 1ae891c6b15e28b280845858326fb50ea5b61ac7 (patch) | |
tree | 92b3941bbc56e8dc39dc339e26cb1661543b7e5d /.travis.yml | |
parent | 926b21117df939241f1cd63f2f9e3ab87819f0ed (diff) |
Save and restore the Windows error around TlsGetValue.
TlsGetValue clears the last error even on success, so that callers may
distinguish it successfully returning NULL or failing. This error-mangling
behavior interferes with the caller's use of GetLastError. In particular
SSL_get_error queries the error queue to determine whether the caller should
look at the OS's errors. To avoid destroying state, save and restore the
Windows error.
Fixes #6299.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 2de108dfa343c3e06eb98beb122cd06306bb12fd)
(Merged from https://github.com/openssl/openssl/pull/6349)
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions