from_backend() should always be called with len > 0. Only rlogin
[u/mdw/putty] / rlogin.c
index ba7dd37..a80d12e 100644 (file)
--- a/rlogin.c
+++ b/rlogin.c
@@ -68,7 +68,8 @@ static int rlogin_receive(Plug plug, int urgent, char *data, int len)
            }
            firstbyte = 0;
        }
-       c_write(data, len);
+       if (len > 0)
+            c_write(data, len);
     }
     return 1;
 }