X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/e99937c8cf1689b4c92266441b42d6867eed85d5..8d5de7770cde9b808c276bd86a0214189a8f7578:/plink.c diff --git a/plink.c b/plink.c index 70aab6de..fd9d36dd 100644 --- a/plink.c +++ b/plink.c @@ -20,6 +20,16 @@ void fatalbox (char *p, ...) { WSACleanup(); exit(1); } +void connection_fatal (char *p, ...) { + va_list ap; + fprintf(stderr, "FATAL ERROR: ", p); + va_start(ap, p); + vfprintf(stderr, p, ap); + va_end(ap); + fputc('\n', stderr); + WSACleanup(); + exit(1); +} HANDLE outhandle;