s3:libsmb: use 'state' instead of 'talloc_tos()' in smb2cli_create*
authorStefan Metzmacher <metze@samba.org>
Thu, 3 May 2012 10:05:13 +0000 (12:05 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 6 May 2012 12:50:38 +0000 (14:50 +0200)
metze

source3/libsmb/smb2cli_create.c

index 79a72142aecafcea4c625de053e8d9fc3881d846..4fa782f2ae52476e31eca89c6e2f2a22bbff59ac 100644 (file)
@@ -105,7 +105,7 @@ struct tevent_req *smb2cli_create_send(
        blob = data_blob_null;
 
        if (blobs != NULL) {
-               status = smb2_create_blob_push(talloc_tos(), &blob, *blobs);
+               status = smb2_create_blob_push(state, &blob, *blobs);
                if (tevent_req_nterror(req, status)) {
                        return tevent_req_post(req, ev);
                }
@@ -170,7 +170,7 @@ static void smb2cli_create_done(struct tevent_req *subreq)
        }
        };
 
-       status = smb2cli_req_recv(subreq, talloc_tos(), &iov,
+       status = smb2cli_req_recv(subreq, state, &iov,
                                  expected, ARRAY_SIZE(expected));
        if (tevent_req_nterror(req, status)) {
                return;