s3: Explicitly handle inbuf in cli_ntcreate_done
authorVolker Lendecke <vl@samba.org>
Sat, 20 Feb 2010 14:19:28 +0000 (15:19 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 22 Feb 2010 22:23:19 +0000 (23:23 +0100)
source3/libsmb/clifile.c

index 80e91a7efdd961a6d0373174ed54d6200473aae3..c5f739b6db4f8461eaa686e7d9a34f4752e69f47 100644 (file)
@@ -2038,12 +2038,13 @@ static void cli_ntcreate_done(struct tevent_req *subreq)
        uint16_t *vwv;
        uint32_t num_bytes;
        uint8_t *bytes;
+       uint8_t *inbuf;
        NTSTATUS status;
 
-       status = cli_smb_recv(subreq, NULL, NULL, 3, &wct, &vwv,
+       status = cli_smb_recv(subreq, state, &inbuf, 3, &wct, &vwv,
                              &num_bytes, &bytes);
+       TALLOC_FREE(subreq);
        if (!NT_STATUS_IS_OK(status)) {
-               TALLOC_FREE(subreq);
                tevent_req_nterror(req, status);
                return;
        }