Home GnuPG

w32: Fix errno for assuan_sock_bind failure.

Description

w32: Fix errno for assuan_sock_bind failure.

* src/assuan-socket.c (_assuan_sock_bind): Use WSAGetLastError and the
mapping to set ERRNO.
  • GnuPG-bug-id: T7456
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Fri, Dec 13, 2:29 AM
Parents
rAdfa5e6532d7e: Fix FreeBSD to set the pid of assuan_peercred_t.
Branches
Unknown
Tags
Unknown
References
HEAD -> master
Tasks
T7456: libassuan: Windows: assuan_sock_bind error

Event Timeline

What do you thing of storing the last WSAGetLAstError value also in the context and extend assuan_sock_get_flag to return this error value? The thing here is that I fear the mapped information is not enough to find the problem with the bind call.