aboutsummaryrefslogtreecommitdiffstats
path: root/tpm2d/tpm2daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'tpm2d/tpm2daemon.c')
-rw-r--r--tpm2d/tpm2daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpm2d/tpm2daemon.c b/tpm2d/tpm2daemon.c
index 383421c30..9218d9a10 100644
--- a/tpm2d/tpm2daemon.c
+++ b/tpm2d/tpm2daemon.c
@@ -1238,8 +1238,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));