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.
pull/1253/head
Yosuke Shimizu 2026-09-15 16:12:42 +09:00
parent 893b2b12de
commit 5f06b27cd0
1 changed files with 1 additions and 1 deletions

View File

@ -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;