From 8d34ee42c733695683c3015530fb3d8791860e6b Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 23 Aug 2021 15:31:03 +0200 Subject: [PATCH] vpcd: Fix timeout calculation Authored by Doug Engert --- virtualsmartcard/src/vpcd/vpcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualsmartcard/src/vpcd/vpcd.c b/virtualsmartcard/src/vpcd/vpcd.c index 57fd55b..ee9e981 100644 --- a/virtualsmartcard/src/vpcd/vpcd.c +++ b/virtualsmartcard/src/vpcd/vpcd.c @@ -200,7 +200,7 @@ SOCKET waitforclient(SOCKET server, long secs, long usecs) pfd.events = POLLIN; pfd.revents = 0; - timeout = (secs * 1000000 + usecs / 1000); + timeout = (secs * 1000 + usecs / 1000); if (poll(&pfd, 1, timeout) == -1) return INVALID_SOCKET;