diff --git a/ssh.c b/ssh.c index 38eb2bbd..969ffbc0 100644 --- a/ssh.c +++ b/ssh.c @@ -6,6 +6,7 @@ #include #include #include +#include #include "putty.h" #include "tree234.h" @@ -8764,7 +8765,7 @@ static int ssh_return_exitcode(void *handle) if (ssh->s != NULL) return -1; else - return (ssh->exitcode >= 0 ? ssh->exitcode : 0); + return (ssh->exitcode >= 0 ? ssh->exitcode : INT_MAX); } /*