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

index a034b5cebb9a71386bd7def75879f7932b629b29..ec81cf92019b7e26a27fc1502dda1c8a1bcb991a 100644 (file)
@@ -3927,9 +3927,12 @@ static void cli_dskattr_done(struct tevent_req *subreq)
                req, struct cli_dskattr_state);
        uint8_t wct;
        uint16_t *vwv = NULL;
+       uint8_t *inbuf;
        NTSTATUS status;
 
-       status = cli_smb_recv(subreq, NULL, NULL, 4, &wct, &vwv, NULL, NULL);
+       status = cli_smb_recv(subreq, state, &inbuf, 4, &wct, &vwv, NULL,
+                             NULL);
+       TALLOC_FREE(subreq);
        if (!NT_STATUS_IS_OK(status)) {
                tevent_req_nterror(req, status);
                return;
@@ -3937,7 +3940,6 @@ static void cli_dskattr_done(struct tevent_req *subreq)
        state->bsize = SVAL(vwv+1, 0)*SVAL(vwv+2,0);
        state->total = SVAL(vwv+0, 0);
        state->avail = SVAL(vwv+3, 0);
-       TALLOC_FREE(subreq);
        tevent_req_done(req);
 }