From 5f06b27cd02e1db6b1c5dea4c080fcfc522d1a65 Mon Sep 17 00:00:00 2001 From: Yosuke Shimizu Date: Tue, 15 Sep 2026 16:12:42 +0900 Subject: [PATCH] wolfsshd: initialize the WIN32 shell exit status - processState starts at 0 in SHELL_Subsystem()'s WIN32 half, where it is read by wolfSSH_SetExitStatus() on paths that leave the loop without GetExitCodeProcess() having written it. --- apps/wolfsshd/wolfsshd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wolfsshd/wolfsshd.c b/apps/wolfsshd/wolfsshd.c index 6a8f5713..6c3ba562 100644 --- a/apps/wolfsshd/wolfsshd.c +++ b/apps/wolfsshd/wolfsshd.c @@ -2339,7 +2339,7 @@ static int SHELL_Subsystem(WOLFSSHD_CONNECTION* conn, WOLFSSH* ssh, int readPending = 0; int wantWrite = 0; int rc = 0; - DWORD processState; + DWORD processState = 0; DWORD ava; struct timeval t;