Attempt to ensure that everything passed to connection_fatal() is
[u/mdw/putty] / raw.c
diff --git a/raw.c b/raw.c
index 58b060c..20732dd 100644 (file)
--- 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;
 }