]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Don't throw away data that we receive before we're ready for it. Just save
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 29 Jul 2007 14:02:00 +0000 (14:02 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 29 Jul 2007 14:02:00 +0000 (14:02 +0000)
it up for later.  This should prevent hangs when talking to particularly
enthusiastic servers.

Thanks to JCA for tracking this bug down.

[originally from svn r7651]

pscp.c

diff --git a/pscp.c b/pscp.c
index 8e082e732ff2c73a462664153e39f9bb46aedacc..e208157b5f3fcf6dcc35edd961d633c24691158d 100644 (file)
--- a/pscp.c
+++ b/pscp.c
@@ -180,12 +180,6 @@ int from_backend(void *frontend, int is_stderr, const char *data, int datalen)
        return 0;
     }
 
-    /*
-     * If this is before the real session begins, just return.
-     */
-    if (!outptr)
-       return 0;
-
     if ((outlen > 0) && (len > 0)) {
        unsigned used = outlen;
        if (used > len)