]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Win32: gai_strerror → WSAGetLastError
authorDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Sat, 1 Jan 2022 19:28:03 +0000 (20:28 +0100)
committerDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Sat, 26 Feb 2022 15:41:51 +0000 (16:41 +0100)
commit1d6fed417426a4d33ff9f8c82f81710b93f08b5a
tree85a3d0491ac577bd4eefd928118f1291b963b520
parent4d22f1dedd45d075f42335fe12af195e24cf3b41
Win32: gai_strerror → WSAGetLastError

The Windows Sockets documentation recommends using WSAGetLastError()
instead of gai_strerror(), because the latter is not thread safe:
https://docs.microsoft.com/en-us/windows/win32/winsock/error-codes-errno-h-errno-and-wsagetlasterror-2

Properly decode the output using openconnect__win32_strerror().

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
ssl.c