From 3fd78adaedd7f2c9206b86a10603c750fb535d21 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 14 Jun 2023 10:45:02 +0200 Subject: [PATCH] [utils] fix variable name in wait_for_fd if build without WINPR_HAVE_POLL_H there was a mistyped variable. --- libfreerdp/utils/passphrase.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreerdp/utils/passphrase.c b/libfreerdp/utils/passphrase.c index 5b6f7dd24..807ab7a01 100644 --- a/libfreerdp/utils/passphrase.c +++ b/libfreerdp/utils/passphrase.c @@ -100,7 +100,7 @@ static int wait_for_fd(int fd, int timeout) fd_set rset = { 0 }; struct timeval tv = { 0 }; FD_ZERO(&rset); - FD_SET(sockfd, &rset); + FD_SET(fd, &rset); if (timeout) { @@ -110,7 +110,7 @@ static int wait_for_fd(int fd, int timeout) do { - status = select(sockfd + 1, &rset, NULL, NULL, timeout ? &tv : NULL); + status = select(fd + 1, &rset, NULL, NULL, timeout ? &tv : NULL); } while ((status < 0) && (errno == EINTR)); #endif