X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/9c41b8ea363252c09541b8bc9a81db93237aacb2..6abb6cd7dbb5f5846931d11653de968dd8c4f9c7:/plink.c diff --git a/plink.c b/plink.c index 2fe882f7..16a44b38 100644 --- a/plink.c +++ b/plink.c @@ -7,6 +7,7 @@ #endif #include #include +#include #include #define PUTTY_DO_GLOBALS /* actually _define_ globals */ @@ -16,7 +17,7 @@ void fatalbox (char *p, ...) { va_list ap; - fprintf(stderr, "FATAL ERROR: ", p); + fprintf(stderr, "FATAL ERROR: "); va_start(ap, p); vfprintf(stderr, p, ap); va_end(ap); @@ -26,7 +27,7 @@ void fatalbox (char *p, ...) { } void connection_fatal (char *p, ...) { va_list ap; - fprintf(stderr, "FATAL ERROR: ", p); + fprintf(stderr, "FATAL ERROR: "); va_start(ap, p); vfprintf(stderr, p, ap); va_end(ap); @@ -557,6 +558,8 @@ int main(int argc, char **argv) { socket = sklist[i]; wp = (WPARAM)socket; if (!WSAEnumNetworkEvents(socket, netevent, &things)) { + noise_ultralight(socket); + noise_ultralight(things.lNetworkEvents); if (things.lNetworkEvents & FD_READ) connopen &= select_result(wp, (LPARAM)FD_READ); if (things.lNetworkEvents & FD_CLOSE) @@ -568,6 +571,7 @@ int main(int argc, char **argv) { } } } else if (n == 1) { + noise_ultralight(idata.len); if (idata.len > 0) { back->send(idata.buffer, idata.len); } else {