Don't throw away data that we receive before we're ready for it. Just save
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 29 Jul 2007 14:02:00 +0000 (14:02 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
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.

git-svn-id: svn://svn.tartarus.org/sgt/putty@7651 cda61777-01e9-0310-a592-d414129be87e

pscp.c

diff --git a/pscp.c b/pscp.c
index 8e082e7..e208157 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)