X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/8d5de7770cde9b808c276bd86a0214189a8f7578..4d331a77f20f321f867f5907e2ffc06249378881:/telnet.c diff --git a/telnet.c b/telnet.c index 75435c6f..6618fdf8 100644 --- a/telnet.c +++ b/telnet.c @@ -1,7 +1,13 @@ #include #include #include +#ifndef AUTO_WINSOCK +#ifdef WINSOCK_TWO +#include +#else #include +#endif +#endif #include "putty.h" @@ -583,6 +589,12 @@ static char *telnet_init (HWND hwnd, char *host, int port, char **realhost) { * Set up SYNCH state. */ in_synch = FALSE; + + /* + * We have no pre-session phase. + */ + begin_session(); + return NULL; }