X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/8eebd22198133e95ce25af1dd15dead0a5389371..941d39e21d83e4db76f354e6782e24b216027965:/raw.c diff --git a/raw.c b/raw.c index 58b060c5..20732dd2 100644 --- a/raw.c +++ b/raw.c @@ -33,7 +33,8 @@ static int raw_closing(Plug plug, char *error_msg, int error_code, } if (error_msg) { /* A socket error has occurred. */ - connection_fatal(error_msg); + logevent(error_msg); + connection_fatal("%s", error_msg); } /* Otherwise, the remote side closed the connection normally. */ return 0; }