From 4833ddaeb81e14835875734d6bec6d22a5dece3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Fri, 15 Apr 2022 16:49:14 -0400 Subject: [PATCH] fix ssh-pkcs11-client.c missing ifdef (#597) --- monitor.c | 1 + ssh-pkcs11-client.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/monitor.c b/monitor.c index f88fbb123..55974c50e 100644 --- a/monitor.c +++ b/monitor.c @@ -83,6 +83,7 @@ #include "canohost.h" #include "log.h" #include "misc.h" +#include "msg.h" #include "servconf.h" #include "monitor.h" #ifdef GSSAPI diff --git a/ssh-pkcs11-client.c b/ssh-pkcs11-client.c index 45cda44b5..fb7ab3923 100644 --- a/ssh-pkcs11-client.c +++ b/ssh-pkcs11-client.c @@ -509,10 +509,12 @@ pkcs11_start_helper(void) #endif /* success */ debug3_f("started pid=%ld", (long)pid); +#ifdef WINDOWS out: if (client_token) CloseHandle(client_token); return r; +#endif } int