The branch, master has been updated
       via  24309bdb2efca36375f3c833f72ebec3908d31fd (commit)
      from  f3cc05b96d8eb7ea5a7424c26e63222ff70fbd98 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 24309bdb2efca36375f3c833f72ebec3908d31fd
Author: Volker Lendecke <v...@samba.org>
Date:   Mon Sep 14 19:09:54 2009 -0700

    Second part of bug fix for 6606.
    s3:libsmb: Fix bug 6606 -- short reads in smbclient were not handled

-----------------------------------------------------------------------

Summary of changes:
 source3/libsmb/clireadwrite.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index b690196..6342de4 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -287,6 +287,12 @@ static void cli_readall_done(struct tevent_req *subreq)
                return;
        }
 
+       if (received == 0) {
+               /* EOF */
+               tevent_req_done(req);
+               return;
+       }
+
        if ((state->received == 0) && (received == state->size)) {
                /* Ideal case: Got it all in one run */
                state->buf = buf;


-- 
Samba Shared Repository

Reply via email to