mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
dirmngr: Fix for SOCK.
* dirmngr/http.c (connect_with_timeout): Use FD2INT to unwrap SOCK. -- GnuPG-bug-id: 5899 Reported-by: Eli Zaretskii Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
18eff31496
commit
01ade6945d
@ -2885,7 +2885,7 @@ connect_with_timeout (assuan_fd_t sock,
|
|||||||
* because the caller is expected to close the socket. */
|
* because the caller is expected to close the socket. */
|
||||||
return gpg_err_make (default_errsource, GPG_ERR_ETIMEDOUT);
|
return gpg_err_make (default_errsource, GPG_ERR_ETIMEDOUT);
|
||||||
}
|
}
|
||||||
if (!FD_ISSET (sock, &rset) && !FD_ISSET (sock, &wset))
|
if (!FD_ISSET (FD2INT (sock), &rset) && !FD_ISSET (FD2INT (sock), &wset))
|
||||||
{
|
{
|
||||||
/* select misbehaved. */
|
/* select misbehaved. */
|
||||||
return gpg_err_make (default_errsource, GPG_ERR_SYSTEM_BUG);
|
return gpg_err_make (default_errsource, GPG_ERR_SYSTEM_BUG);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user