X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/8d5de7770cde9b808c276bd86a0214189a8f7578..4d331a77f20f321f867f5907e2ffc06249378881:/ssh.c diff --git a/ssh.c b/ssh.c index fddb68d1..97c6839b 100644 --- a/ssh.c +++ b/ssh.c @@ -2,7 +2,13 @@ #include #include #include +#ifndef AUTO_WINSOCK +#ifdef WINSOCK_TWO +#include +#else #include +#endif +#endif #include "putty.h" #include "tree234.h" @@ -1628,6 +1634,7 @@ static void ssh1_protocol(unsigned char *in, int inlen, int ispkt) { ssh_send_ok = 1; ssh_channels = newtree234(ssh_channelcmp); + begin_session(); while (1) { crReturnV; if (ispkt) { @@ -2335,6 +2342,7 @@ static void do_ssh2_authconn(unsigned char *in, int inlen, int ispkt) * Transfer data! */ ssh_send_ok = 1; + begin_session(); while (1) { static int try_send; crReturnV;