X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/754c0df9e163ff5c244239a201026858f4381e73..3c112d53d0733f8dcb05d15a4c5e4f9ffffef89b:/ssh.c?ds=sidebyside diff --git a/ssh.c b/ssh.c index 1a7880cc..969ffbc0 100644 --- a/ssh.c +++ b/ssh.c @@ -1,7 +1,12 @@ +/* + * SSH backend. + */ + #include #include #include #include +#include #include "putty.h" #include "tree234.h" @@ -8760,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); } /*