s3:libsmb: return NT_STATUS_OK for if a request is not the last one in the chain
authorStefan Metzmacher <metze@samba.org>
Mon, 7 Nov 2011 07:55:20 +0000 (08:55 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 7 Nov 2011 10:38:05 +0000 (11:38 +0100)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Nov  7 11:38:05 CET 2011 on sn-devel-104

source3/libsmb/async_smb.c

index 26f4b30ce1be62a63855130249588137b82b4e53..08b6c3561ec8e828ad6a6360dd6e083851c685a3 100644 (file)
@@ -931,6 +931,12 @@ NTSTATUS cli_smb_recv(struct tevent_req *req,
                         */
                        return status;
                }
+       } else {
+               /*
+                * Only the last request in the chain get the returned
+                * status.
+                */
+               status = NT_STATUS_OK;
        }
 
 no_err: