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

index ba09af4c06e26e32d9e077530ce33613b3aa1a7f..256ca2e02771ed26b57484084f02e423f915a5a2 100644 (file)
@@ -2033,11 +2033,12 @@ static void cli_negprot_done(struct tevent_req *subreq)
        uint8_t *bytes;
        NTSTATUS status;
        uint16_t protnum;
+       uint8_t *inbuf;
 
-       status = cli_smb_recv(subreq, NULL, NULL, 1, &wct, &vwv,
+       status = cli_smb_recv(subreq, state, &inbuf, 1, &wct, &vwv,
                              &num_bytes, &bytes);
+       TALLOC_FREE(subreq);
        if (!NT_STATUS_IS_OK(status)) {
-               TALLOC_FREE(subreq);
                tevent_req_nterror(req, status);
                return;
        }