From e0ae79ff3c70e41582124e195ce527a09571ee25 Mon Sep 17 00:00:00 2001 From: Tess Gauthier Date: Tue, 8 Apr 2025 16:55:37 -0400 Subject: [PATCH] add flag to pipe creation to reject remote clients (#782) --- contrib/win32/win32compat/ssh-agent/agent.c | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/win32/win32compat/ssh-agent/agent.c b/contrib/win32/win32compat/ssh-agent/agent.c index 96e554a58..7b9209d0e 100644 --- a/contrib/win32/win32compat/ssh-agent/agent.c +++ b/contrib/win32/win32compat/ssh-agent/agent.c @@ -121,6 +121,7 @@ agent_listen_loop() PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED, // read/write access PIPE_TYPE_BYTE | // message type pipe PIPE_READMODE_BYTE | // message-read mode + PIPE_REJECT_REMOTE_CLIENTS | // no remote client connections allowed PIPE_WAIT, // blocking mode PIPE_UNLIMITED_INSTANCES, // max. instances BUFSIZE, // output buffer size