summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-04-28 16:58:41 +0200
committerStefan Metzmacher <metze@samba.org>2011-04-28 20:36:06 +0200
commit9306b8b3c6cec486b57426610b1d9ea3112dfd03 (patch)
treed1cb050cf5a0e3a8902525ffb05ed15137a62a70 /source4/libcli
parent59651175fce9f24b5f17b44bcf9f54202e9fa56e (diff)
downloadsamba-9306b8b3c6cec486b57426610b1d9ea3112dfd03.tar.gz
samba-9306b8b3c6cec486b57426610b1d9ea3112dfd03.tar.bz2
samba-9306b8b3c6cec486b57426610b1d9ea3112dfd03.zip
s4:libcli/smb_composite: add smb2_composite_setpathinfo_close_done()
metze
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/smb_composite/smb2.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/source4/libcli/smb_composite/smb2.c b/source4/libcli/smb_composite/smb2.c
index df30fb7c81..c4db7f8fbb 100644
--- a/source4/libcli/smb_composite/smb2.c
+++ b/source4/libcli/smb_composite/smb2.c
@@ -264,6 +264,7 @@ NTSTATUS smb2_composite_rmdir(struct smb2_tree *tree, struct smb_rmdir *io)
return composite_wait_free(c);
}
+static void smb2_composite_setpathinfo_close_done(struct smb2_request *smb2req);
static void smb2_composite_setpathinfo_setinfo_done(struct smb2_request *smb2req)
{
@@ -285,7 +286,7 @@ static void smb2_composite_setpathinfo_setinfo_done(struct smb2_request *smb2req
close_parm.in.file.handle = io2->generic.in.file.handle;
smb2req = smb2_close_send(tree, &close_parm);
- composite_continue_smb2(ctx, smb2req, continue_close, ctx);
+ composite_continue_smb2(ctx, smb2req, smb2_composite_setpathinfo_close_done, ctx);
}
static void smb2_composite_setpathinfo_create_done(struct smb2_request *smb2req)
@@ -352,6 +353,16 @@ struct composite_context *smb2_composite_setpathinfo_send(struct smb2_tree *tree
return ctx;
}
+static void smb2_composite_setpathinfo_close_done(struct smb2_request *smb2req)
+{
+ struct composite_context *ctx = talloc_get_type(smb2req->async.private_data,
+ struct composite_context);
+ NTSTATUS status;
+ struct smb2_close close_parm;
+
+ status = smb2_close_recv(smb2req, &close_parm);
+ composite_error(ctx, status);
+}
/*
composite setpathinfo call