Ensure all backends _remember_ the connection has closed after
[u/mdw/putty] / rlogin.c
index 20296a0..e0552f2 100644 (file)
--- a/rlogin.c
+++ b/rlogin.c
@@ -24,9 +24,10 @@ static void c_write (char *buf, int len) {
     from_backend(0, buf, len);
 }
 
-static int rlogin_receive (Socket s, int urgent, char *data, int len) {
+static int rlogin_receive (Socket skt, int urgent, char *data, int len) {
     if (urgent==3) {
         /* A socket error has occurred. */
+        s = NULL;
         connection_fatal(data);
         len = 0;
     }