summaryrefslogtreecommitdiffstats
path: root/scd
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2023-07-24 06:52:22 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2023-08-03 09:33:51 +0200
commit5cad5f903e043a53538450eb38ab10965e455b40 (patch)
tree42929d5d2d8361e5cc2285063e735dd96b90e5ff /scd
parentbuild: Require libassuan 3.0.0 or later. (diff)
downloadgnupg2-5cad5f903e043a53538450eb38ab10965e455b40.tar.xz
gnupg2-5cad5f903e043a53538450eb38ab10965e455b40.zip
agent,dirmngr,kbx,scdaemon: Use assuan_sock_accept.
* agent/gpg-agent.c (handle_connections): Use assuan_sock_accept. * dirmngr/dirmngr.c (handle_connections): Ditto. * kbx/keyboxd.c (handle_connections): Ditto. * scd/scdaemon.c (handle_connections): Ditto. * tpm2d/tpm2daemon.c (handle_connections): Ditto. -- GnuPG-bug-id: 6599 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'scd')
-rw-r--r--scd/scdaemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c
index 653fc78cc..71e37d28c 100644
--- a/scd/scdaemon.c
+++ b/scd/scdaemon.c
@@ -1399,8 +1399,8 @@ handle_connections (gnupg_fd_t listen_fd)
gnupg_fd_t fd;
plen = sizeof paddr;
- fd = INT2FD (npth_accept (FD2INT (listen_fd),
- (struct sockaddr *)&paddr, &plen));
+ fd = assuan_sock_accept (listen_fd,
+ (struct sockaddr *)&paddr, &plen);
if (fd == GNUPG_INVALID_FD)
{
log_error ("accept failed: %s\n", strerror (errno));