X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/39934deb5202149f98198c111a35c21cb4d0d0f8..7555d6a50b05d96de39b5e95cf11a8f05f0c4fd9:/windows/winplink.c diff --git a/windows/winplink.c b/windows/winplink.c index 497ac927..602ec7bc 100644 --- a/windows/winplink.c +++ b/windows/winplink.c @@ -231,6 +231,7 @@ static void usage(void) printf(" -A -a enable / disable agent forwarding\n"); printf(" -t -T enable / disable pty allocation\n"); printf(" -1 -2 force use of particular protocol version\n"); + printf(" -4 -6 force use of IPv4 or IPv6\n"); printf(" -C enable compression\n"); printf(" -i key private key file for authentication\n"); printf(" -s remote command is an SSH subsystem (SSH-2 only)\n"); @@ -270,7 +271,7 @@ int main(int argc, char **argv) HANDLE handles[4]; DWORD in_threadid, out_threadid, err_threadid; struct input_data idata; - int reading; + int reading = FALSE; int sending; int portnumber = -1; SOCKET *sklist; @@ -663,6 +664,7 @@ int main(int argc, char **argv) cleanup_exit(1); } sending = TRUE; + reading = TRUE; } if (run_timers(now, &next)) {